:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --surface: #171717;
  --surface-2: #262626;
  --surface-3: #303030;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --muted-2: #737373;
  --line: #262626;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1180px;
}

* {
  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.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(23, 23, 23, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(var(--max), calc(100% - 32px));
  height: 68px;
  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;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #111111;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent);
  color: #111111;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
}

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

.mobile-menu {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(23, 23, 23, 0.98);
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000000;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.72) 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, #0a0a0a 0%, transparent 38%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 68px;
  max-width: 1180px;
}

.hero-content h1 {
  width: min(760px, 100%);
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: #d4d4d4;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #171717;
  font-size: 12px;
  font-weight: 800;
}

.hero-meta,
.card-meta,
.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span,
.card-meta span,
.overview-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-button {
  min-height: 50px;
  padding: 0 24px;
  background: var(--accent);
  color: #111111;
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.26);
}

.primary-button:hover {
  background: #fbbf24;
  transform: translateY(-2px);
}

.secondary-button,
.ghost-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(23, 23, 23, 0.64);
  color: var(--text);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-button {
  color: var(--accent);
}

.text-button:hover {
  color: #fbbf24;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: var(--accent);
  color: #111111;
}

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

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

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

.hero-dot {
  width: 26px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 42px;
  background: var(--accent);
}

.stats-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: -48px auto 70px;
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-strip div {
  padding: 24px;
  background: rgba(23, 23, 23, 0.88);
  backdrop-filter: blur(16px);
}

.stats-strip strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.content-section,
.page-main,
.detail-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 0 0 78px;
}

.no-top-padding {
  padding-top: 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

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

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

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

.featured-grid {
  grid-auto-flow: dense;
}

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 26px 50px rgba(245, 158, 11, 0.1);
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent),
    var(--surface-2);
}

.movie-card.featured .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.category-card img,
.detail-poster img,
.overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.overview-card:hover .overview-cover img {
  transform: scale(1.08);
}

.poster-gradient,
.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.08) 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient,
.category-card:hover .category-shade {
  opacity: 1;
}

.poster-tags {
  position: absolute;
  top: 12px;
  left: 12px;
}

.poster-tags .tag-pill {
  min-height: 24px;
  background: rgba(23, 23, 23, 0.88);
  color: var(--accent);
  backdrop-filter: blur(8px);
}

.type-badge,
.rank-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--accent);
  color: #111111;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

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

.card-line {
  min-height: 3.2em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  gap: 6px;
}

.card-meta span {
  font-size: 11px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-info {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent);
}

.category-info strong {
  font-size: 20px;
}

.category-info small {
  color: var(--muted);
  line-height: 1.55;
}

.category-info em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.inner-page {
  padding-top: 68px;
}

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

.page-hero {
  overflow: hidden;
  margin-bottom: 30px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-panel {
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.86);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.search-field {
  margin-bottom: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.ghost-button {
  border: 1px solid var(--line);
  cursor: pointer;
}

.filter-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.filter-count strong {
  color: var(--accent);
}

.empty-state {
  margin: 30px 0;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 78px;
}

.overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 230px;
  overflow: hidden;
  background: var(--surface-2);
}

.overview-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

.overview-body h2 {
  margin: 0;
  font-size: 24px;
}

.overview-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking-table th {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.ranking-table td {
  color: #d4d4d4;
}

.ranking-table a {
  color: var(--text);
  font-weight: 800;
}

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

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

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

.detail-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.74));
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #111111;
  font-size: 26px;
  box-shadow: 0 0 54px rgba(245, 158, 11, 0.45);
}

.player-overlay strong {
  font-size: 20px;
}

.player-overlay small {
  color: var(--muted);
}

.detail-info {
  display: grid;
  gap: 16px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
}

.detail-meta-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.detail-meta-card p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
}

.detail-meta-card span {
  color: var(--muted);
}

.detail-meta-card strong {
  text-align: right;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 60px;
}

.detail-main-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.detail-main-copy h1 {
  margin: 8px 0 16px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 22px;
  color: #d4d4d4;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-main-copy article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-main-copy article + article {
  margin-top: 24px;
}

.detail-main-copy h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-main-copy article p {
  margin: 0;
  color: #d4d4d4;
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: #111111;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.7;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

[hidden],
.movie-card.is-hidden,
.ranking-table tr.is-hidden {
  display: none !important;
}

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

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

  .detail-info {
    grid-template-columns: 220px 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .hero-arrow {
    display: none;
  }

  .stats-strip,
  .filter-selects,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .overview-card {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    min-height: 220px;
  }

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

@media (max-width: 560px) {
  .navbar,
  .mobile-menu,
  .content-section,
  .page-main,
  .detail-content,
  .detail-hero,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, var(--max));
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 82vh;
    min-height: 610px;
  }

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

  .stats-strip,
  .movie-grid,
  .category-grid,
  .filter-selects,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .page-hero,
  .detail-main-copy {
    padding: 24px;
    border-radius: 20px;
  }

  .content-section {
    padding-bottom: 52px;
  }
}
