:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.86);
  --bg-card-strong: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-strong: #fb923c;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(251, 146, 60, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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: 80;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.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: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(249, 115, 22, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: 44px;
  padding: 132px max(24px, calc((100vw - 1240px) / 2)) 110px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 45%, rgba(2, 6, 23, 0.84) 100%);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-site-title {
  margin: 0 0 12px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.hero-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(16px, 1.45vw, 20px);
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.1);
  font-size: 13px;
}

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

.hero-actions.single {
  justify-content: center;
}

.primary-btn,
.ghost-btn,
.home-search button,
.global-search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button,
.global-search-box button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.global-search-box button:hover {
  transform: translateY(-2px);
}

.hero-card {
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.hero-card div {
  padding: 22px;
}

.hero-card span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.hero-card p {
  margin: 10px 0 0;
  color: var(--muted-strong);
}

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

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

.hero-dots button.active {
  background: var(--accent);
}

.section-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 30px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p:not(.section-kicker) {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--muted-strong);
  font-size: 18px;
}

.home-search-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 36px;
}

.home-search-block h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.home-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.home-search input,
.global-search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  color: #fff;
  background: rgba(2, 6, 23, 0.62);
}

.home-search input,
.global-search-box input,
.filter-panel input {
  padding: 0 18px;
}

.filter-panel select {
  padding: 0 16px;
}

.home-search input {
  border: 0;
  background: transparent;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head.compact {
  align-items: center;
}

.section-head a {
  color: var(--accent-strong);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(251, 146, 60, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-badge,
.play-mini {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.play-mini {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 6, 23, 0.82);
  transform: scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mini {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: var(--accent-strong);
}

.movie-card-desc {
  min-height: 54px;
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.76));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.category-card-main {
  display: block;
  padding: 24px;
}

.category-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.category-card h2 {
  margin: 0;
  font-size: 26px;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--muted-strong);
}

.category-preview {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.category-preview a {
  display: block;
  padding: 12px 18px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.42);
}

.category-preview a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.18);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: start;
}

.rank-panel,
.ranking-page,
.detail-content,
.filter-panel,
.global-search-box,
.video-shell,
.next-links,
.breadcrumb {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.rank-panel {
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  border-radius: 18px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.36);
}

.rank-item a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.14);
}

.rank-number {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

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

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.wide-rank-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

.search-line,
.select-line {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 700;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 28px;
}

.pager a,
.pager span {
  min-width: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
}

.pager a.active,
.pager a:hover {
  color: #fff;
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(249, 115, 22, 0.2);
}

.global-search-box {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 12px;
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-strong);
}

.breadcrumb a {
  color: var(--accent-strong);
}

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.14), transparent 32%),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin: 20px 0 0;
  max-width: 850px;
  color: var(--muted-strong);
  font-size: 19px;
}

.player-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.video-overlay[hidden] {
  display: none;
}

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.38);
}

.video-overlay strong {
  max-width: 70%;
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1.2;
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 28px;
}

.content-main h2,
.content-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-main p {
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: 17px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  text-align: right;
}

.next-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.next-links a {
  color: var(--accent-strong);
  font-weight: 800;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 36px 0;
}

.footer-inner p {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.82);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.18);
}

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
}

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-card {
    display: none;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-slider {
    min-height: 660px;
  }

  .hero-slide {
    padding: 110px 20px 86px;
  }

  .home-search-block,
  .section-head,
  .footer-inner,
  .next-links {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search,
  .global-search-box,
  .filter-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .related-grid,
  .category-grid,
  .wide-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .section-wrap,
  .page-hero,
  .detail-hero,
  .breadcrumb,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1240px);
  }

  .logo {
    font-size: 17px;
  }

  .hero-slider {
    min-height: 610px;
  }

  .hero-content h1,
  .hero-site-title {
    font-size: 42px;
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .related-grid,
  .category-grid,
  .wide-rank-list {
    grid-template-columns: 1fr;
  }

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

  .video-overlay strong {
    max-width: 88%;
  }
}
