:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-strong: #1e293b;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(249, 115, 22, 0.38);
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --soft: #64748b;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: rgba(249, 115, 22, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --page: 1280px;
}

* {
  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.10), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-wrap {
  width: min(100% - 32px, var(--page));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.site-logo-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), #facc15);
  color: white;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.36);
}

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

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

.nav-link,
.mobile-link {
  color: var(--muted);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

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

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: white;
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

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

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.20) 48%, rgba(2, 6, 23, 0.26) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(100% - 32px, var(--page));
  margin: 0 auto;
  max-width: 720px;
}

.hero-kicker,
.sub-hero p:first-child {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.detail-hero-content h1,
.sub-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.48);
}

.hero-summary,
.detail-hero-content p,
.sub-hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-meta,
.movie-meta,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags,
.detail-meta {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: var(--muted);
  border: 1px solid var(--line);
}

.hero-tags span,
.detail-meta span {
  padding: 9px 14px;
}

.movie-tags span,
.detail-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-btn {
  background: var(--brand);
  color: white;
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.34);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--brand-dark);
  box-shadow: 0 22px 42px rgba(249, 115, 22, 0.42);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.62);
  color: white;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(249, 115, 22, 0.13);
}

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

.hero-dot {
  width: 24px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.68);
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 48px;
  background: var(--brand);
}

.home-wrap,
.stacked-sections {
  display: grid;
  gap: 64px;
  padding: 64px 0;
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
  margin-bottom: 28px;
}

.section-title span {
  width: 5px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.64);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.section-title p {
  grid-column: 2;
  margin: 0;
  color: var(--subtle);
}

.compact-title {
  margin-bottom: 18px;
}

.movie-grid,
.feature-grid,
.category-grid,
.rank-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: var(--shadow);
}

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

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 58%);
  opacity: 0.8;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 220ms ease, transform 220ms ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

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

.movie-card h3 {
  margin: 0;
  color: white;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-small h3 {
  font-size: 15px;
}

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

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-small .movie-line {
  min-height: 38px;
  font-size: 13px;
}

.movie-meta {
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 12px;
}

.h-scroll {
  display: flex;
  gap: 18px;
  padding-bottom: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.h-scroll-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

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

.category-tile,
.category-overview-card,
.content-card,
.side-card,
.player-card,
.search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.20);
}

.category-tile {
  display: grid;
  gap: 14px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.82);
}

.category-thumb-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-thumb-strip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.category-tile strong,
.category-overview-head h2 {
  color: white;
  font-size: 20px;
}

.category-tile em,
.category-overview-head p {
  color: var(--subtle);
  font-style: normal;
  font-size: 14px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 86px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.82);
}

.rank-number {
  color: rgba(148, 163, 184, 0.35);
  font-size: 30px;
  font-weight: 900;
}

.rank-item img {
  width: 86px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  color: white;
  font-size: 17px;
}

.rank-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--subtle);
  font-style: normal;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-copy span {
  color: var(--soft);
  font-size: 12px;
}

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 28rem),
    linear-gradient(135deg, #020617, #111827 62%, #0f172a);
}

.sub-hero {
  padding: 84px 0;
}

.sub-hero-inner {
  position: relative;
  z-index: 1;
}

.sub-hero h1 {
  max-width: 920px;
}

.category-overview-card {
  padding: 22px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
}

.category-overview-head p {
  margin: 0;
}

.category-overview-head a,
.category-side-link {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--brand-soft);
  color: #fed7aa;
  font-weight: 700;
}

.search-panel {
  padding: 22px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--subtle);
  font-size: 13px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.empty-state {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--subtle);
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
}

.pagination a:hover,
.pagination a.is-active {
  border-color: var(--line-strong);
  background: var(--brand);
  color: white;
}

.detail-hero {
  min-height: 540px;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0 72px;
}

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

.breadcrumb a:hover {
  color: var(--brand);
}

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

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.player-card {
  padding: 14px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: black;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.20), rgba(0, 0, 0, 0.72)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
  transition: opacity 200ms ease, visibility 200ms ease;
}

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

.player-start {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.46);
  transition: transform 180ms ease, background 180ms ease;
}

.player-start:hover {
  transform: scale(1.06);
  background: var(--brand-dark);
}

.player-start span {
  margin-left: 5px;
  font-size: 34px;
}

.content-card,
.side-card {
  padding: 24px;
}

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

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.info-list dt {
  color: var(--soft);
}

.info-list dd {
  margin: 0;
  color: var(--muted);
}

.detail-tags {
  gap: 10px;
}

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

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

.footer-inner {
  width: min(100% - 32px, var(--page));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0;
  color: var(--subtle);
}

.footer-logo {
  margin-bottom: 8px;
  color: white;
  font-size: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a:hover {
  color: var(--brand);
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-shade,
  .detail-hero-overlay {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.50) 56%, rgba(2, 6, 23, 0.68) 100%),
      rgba(2, 6, 23, 0.28);
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 88px;
  }

  .feature-grid,
  .three-grid,
  .four-grid,
  .category-grid,
  .rank-grid,
  .large-rank-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-inner,
  .category-overview-head {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-wrap,
  .site-header-inner,
  .footer-inner {
    width: min(100% - 24px, var(--page));
  }

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

  .home-wrap,
  .stacked-sections {
    gap: 44px;
    padding: 44px 0;
  }

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

  .hero-copy h1,
  .detail-hero-content h1,
  .sub-hero h1 {
    font-size: 34px;
  }

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

  .six-grid,
  .feature-grid,
  .three-grid,
  .four-grid,
  .category-grid,
  .rank-grid,
  .large-rank-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-line,
  .movie-tags {
    display: none;
  }

  .rank-item {
    grid-template-columns: 52px 1fr;
  }

  .rank-item img {
    display: none;
  }

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

  .detail-hero {
    min-height: 480px;
  }

  .detail-hero-content {
    padding: 70px 0 56px;
  }

  .content-card,
  .side-card,
  .search-panel,
  .category-overview-card {
    padding: 18px;
    border-radius: 18px;
  }

  .info-list {
    grid-template-columns: 70px 1fr;
  }
}
