:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-strong: #1e293b;
  --text: #ffffff;
  --muted: #94a3b8;
  --line: #1f2937;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.09), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #111827;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.current,
.mobile-nav a:hover,
.mobile-nav a.current,
.footer-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.86);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.nav-open .mobile-nav {
  display: grid;
}

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 760px;
  padding-top: 64px;
  background: #020617;
  isolation: isolate;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.93) 38%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 48%, rgba(2, 6, 23, 0.74) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 96px 0 148px;
}

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

.hero-content h1,
.page-hero h1,
.detail-info-card h1 {
  margin: 0;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 72px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.hero-meta span,
.detail-meta span,
.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-meta span,
.detail-meta span {
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-summary {
  max-width: 690px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  background: var(--accent-soft);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.filter-bar button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.filter-bar button:first-of-type,
.hero-search button {
  background: var(--accent);
  color: #111827;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.24);
}

.primary-button:hover,
.filter-bar button:first-of-type:hover,
.hero-search button:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.ghost-button,
.filter-bar button[data-clear-filter] {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.66);
  color: #fff;
}

.ghost-button:hover,
.filter-bar button[data-clear-filter]:hover {
  border-color: rgba(245, 158, 11, 0.62);
  transform: translateY(-1px);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: 16px;
  align-items: stretch;
}

.hero-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 16px;
  outline: none;
}

.hero-featured-links,
.hero-category-links {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-featured-links a,
.hero-category-links a {
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e5e7eb;
  padding: 10px 14px;
  font-size: 13px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-category-links a {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.hero-featured-links a:hover,
.hero-category-links a:hover {
  border-color: var(--accent);
  color: #fff;
}

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

.hero-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

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

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

.highlight-section {
  padding-top: 56px;
}

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

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

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(30, 41, 59, 0.88));
  box-shadow: var(--shadow);
}

.movie-card.poster .poster-frame {
  aspect-ratio: 2 / 3;
}

.movie-card.wide .poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 55%);
  opacity: 0.82;
}

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

.movie-region {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  display: block;
  padding-top: 12px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-info em,
.card-desc {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 8px;
}

.tag-row span {
  font-size: 12px;
  padding: 4px 8px;
}

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

.category-tile,
.overview-card,
.story-card,
.side-card,
.detail-info-card,
.player-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
}

.category-tile,
.overview-card {
  padding: 20px;
}

.category-tile span,
.overview-main span {
  color: var(--accent);
  font-weight: 800;
}

.category-tile strong,
.overview-main strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
}

.mini-links,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a,
.overview-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 13px;
}

.rank-section {
  padding-bottom: 72px;
}

.rank-list,
.ranking-list {
  display: grid;
  gap: 10px;
}

.rank-item,
.ranking-row {
  display: grid;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item {
  grid-template-columns: 52px 1fr minmax(140px, auto);
  gap: 14px;
  padding: 14px 16px;
}

.rank-item:hover,
.ranking-row:hover {
  border-color: rgba(245, 158, 11, 0.52);
  transform: translateY(-1px);
}

.rank-item span,
.rank-num {
  color: var(--accent);
  font-weight: 900;
}

.rank-item strong,
.ranking-row strong {
  color: #fff;
}

.rank-item em,
.ranking-row em,
.ranking-row small {
  color: var(--muted);
  font-style: normal;
}

.page-main {
  padding-top: 64px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 10px;
}

.compact-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.compact-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  min-width: 220px;
  flex: 1 1 220px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  outline: none;
  padding: 0 14px;
}

.filter-bar select option {
  background: #0f172a;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip-row button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 8px 12px;
}

.chip-row button.active,
.chip-row button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.is-hidden {
  display: none !important;
}

.ranking-row {
  grid-template-columns: 56px 72px minmax(0, 1fr) 120px;
  gap: 16px;
  padding: 12px;
}

.ranking-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(30, 41, 59, 0.88));
}

.rank-text {
  display: grid;
  gap: 4px;
}

.rank-category {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

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

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.86fr);
  gap: 28px;
}

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

.player-card {
  overflow: hidden;
  background: #000;
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.detail-info-card,
.story-card,
.side-card {
  padding: 24px;
}

.detail-info-card h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.detail-tags {
  margin-top: 22px;
}

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

.story-card p,
.side-card p {
  margin: 0 0 12px;
  color: #d1d5db;
}

.side-card p:last-child,
.story-card p:last-child {
  margin-bottom: 0;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(30, 41, 59, 0.88));
  box-shadow: var(--shadow);
}

.related-section {
  padding-bottom: 72px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.footer-brand {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #cbd5e1;
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .detail-side {
    grid-template-columns: minmax(160px, 260px) 1fr;
  }
}

@media (max-width: 760px) {
  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 220px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-featured-links,
  .hero-category-links {
    padding-bottom: 2px;
  }

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

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

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

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

  .rank-item em {
    grid-column: 2;
  }

  .ranking-row {
    grid-template-columns: 42px 64px 1fr;
  }

  .rank-category {
    display: none;
  }

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

@media (max-width: 480px) {
  .nav-shell,
  .content-section,
  .page-hero,
  .detail-layout,
  .breadcrumb,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 17px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-bar button {
    flex-basis: 100%;
  }
}
