:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1f2937;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, .16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(2, 6, 23, .25);
}

.nav-bar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--slate-900);
  background: var(--amber-500);
  box-shadow: 0 0 28px rgba(245, 158, 11, .55);
  font-size: 15px;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.nav-link {
  color: rgba(255, 255, 255, .86);
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--amber-400);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.filter-bar input,
.filter-bar select,
.hero-search input,
.big-search input {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}

.top-search input {
  width: 180px;
  color: var(--white);
  background: rgba(51, 65, 85, .92);
}

.top-search button,
.hero-search button,
.big-search button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--amber-500);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.top-search button:hover,
.hero-search button:hover,
.big-search button:hover {
  transform: translateY(-1px);
  background: var(--amber-600);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 26px;
}

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

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

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .76;
  transform: scale(1.02);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(245, 158, 11, .28), transparent 30%),
    linear-gradient(135deg, #020617, #111827 50%, #78350f);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, .9) 0%, rgba(2, 6, 23, .72) 44%, rgba(2, 6, 23, .14) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  color: var(--white);
}

.hero-kicker,
.card-meta,
.meta-line,
.inline-tags,
.hero-tags,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker {
  color: var(--amber-400);
  font-weight: 700;
}

.hero-kicker span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: rgba(255, 255, 255, .55);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags span,
.inline-tags span,
.card-tags span,
.quick-tags a {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 16px 30px rgba(245, 158, 11, .32);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
}

.btn.text {
  color: var(--amber-400);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, .48);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dots button.active {
  width: 36px;
  background: var(--amber-500);
}

.section {
  padding: 72px 0;
}

.white {
  background: var(--white);
}

.light-gray {
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}

.amber-soft {
  background: linear-gradient(90deg, var(--amber-50), #fff7ed);
}

.slate-section {
  color: var(--white);
  background: var(--slate-800);
}

.section-dark-to-light {
  background: linear-gradient(180deg, var(--slate-900), var(--gray-50));
}

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

.section-title h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-title.light h2,
.section-title.light .eyebrow {
  color: var(--white);
}

.section-title a {
  color: var(--amber-600);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.scroll-shell {
  position: relative;
}

.movie-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

.movie-row .movie-card {
  flex: 0 0 292px;
}

.scroll-btn {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--slate-900);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 28px;
}

.scroll-btn.left {
  left: -16px;
}

.scroll-btn.right {
  right: -16px;
}

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

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

.featured-grid .movie-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card {
  position: relative;
  display: block;
  min-height: 250px;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111827, #78350f);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .24);
}

.poster-wrap {
  position: absolute;
  inset: 0;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #78350f);
  transition: transform .45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .06), rgba(15, 23, 42, .28) 38%, rgba(2, 6, 23, .92));
}

.card-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span {
  color: var(--amber-100);
  background: rgba(15, 23, 42, .48);
}

.card-body {
  position: relative;
  z-index: 2;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.card-meta {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

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

.category-tile,
.category-card {
  display: block;
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform .22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
}

.category-tile strong,
.category-card h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile span,
.category-card p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
}

.category-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.mini-img {
  height: 72px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #78350f);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--white);
  background: var(--slate-900);
  font-weight: 900;
}

.rank-item strong,
.side-link span {
  display: block;
  color: var(--gray-800);
}

.rank-item p,
.side-link small {
  margin: 6px 0 0;
  color: var(--gray-500);
}

.search-panel {
  align-self: start;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.big-search {
  display: grid;
  gap: 12px;
}

.quick-tags {
  margin-top: 18px;
}

.quick-tags a {
  background: rgba(255, 255, 255, .1);
}

.page-hero {
  color: var(--white);
  padding: 76px 0;
  background:
    radial-gradient(circle at 74% 20%, rgba(245, 158, 11, .24), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero.compact {
  padding: 58px 0;
}

.page-hero h1 {
  color: var(--white);
  max-width: 840px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .76);
  line-height: 1.75;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
}

.breadcrumb.on-dark {
  color: rgba(255, 255, 255, .72);
}

.breadcrumb.on-dark a {
  color: var(--amber-400);
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin-top: 24px;
}

.hero-search input {
  flex: 1;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--gray-100);
}

.filter-bar.strong {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.filter-bar select,
.filter-bar input {
  width: 100%;
  background: var(--white);
  color: var(--gray-800);
}

.movie-list-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.list-thumb {
  height: 140px;
}

.list-info {
  padding: 20px 20px 20px 0;
}

.list-info h3 {
  margin: 0 0 8px;
}

.list-info p {
  color: var(--gray-500);
  line-height: 1.6;
}

.meta-line {
  color: var(--gray-500);
}

.meta-line b {
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--amber-600);
  background: var(--amber-50);
}

.meta-line.big {
  margin: 14px 0 18px;
  font-size: 16px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 150px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.rank-large {
  color: var(--amber-500);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #78350f);
}

.rank-detail h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-detail p {
  margin: 0 0 10px;
  color: var(--gray-500);
  line-height: 1.6;
}

.player-section {
  padding: 34px 0 48px;
  background: var(--slate-950);
}

.player-wrap {
  max-width: 1040px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, .15), rgba(2, 6, 23, .65));
  cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease;
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--amber-500);
  box-shadow: 0 0 40px rgba(245, 158, 11, .5);
  font-size: 30px;
}

.play-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
}

.detail-card,
.side-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-card {
  padding: 34px;
}

.detail-head {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: start;
}

.detail-poster {
  height: 300px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #111827, #78350f);
}

.detail-card h1 {
  margin-bottom: 0;
}

.lead {
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.75;
}

.inline-tags {
  margin-top: 18px;
}

.inline-tags span {
  color: var(--gray-700);
  background: var(--gray-100);
}

.article-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.article-block h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
}

.article-block p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.side-card {
  padding: 24px;
}

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

.side-link {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: var(--gray-50);
}

.site-footer {
  color: rgba(255, 255, 255, .74);
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.5fr;
  gap: 38px;
  padding: 48px 0;
}

.footer-grid h3,
.footer-brand strong {
  color: var(--white);
}

.footer-grid a {
  display: inline-block;
  margin: 0 12px 10px 0;
  color: rgba(255, 255, 255, .74);
}

.footer-grid a:hover {
  color: var(--amber-400);
}

.footer-grid p {
  line-height: 1.75;
}

.footer-bottom {
  padding: 22px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 1100px) {
  .nav-links,
  .top-search {
    display: none;
  }

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

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

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

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

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-actions,
  .hero-search,
  .big-search {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .featured-grid .movie-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

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

  .rank-row {
    grid-template-columns: 52px 90px 1fr;
    gap: 12px;
  }

  .rank-poster {
    height: 86px;
  }

  .rank-detail p,
  .rank-detail .inline-tags {
    display: none;
  }

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

  .detail-poster {
    height: 360px;
  }

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