:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-soft: #111827;
  --bg-card: rgba(17, 24, 39, 0.88);
  --bg-card-strong: rgba(31, 41, 55, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(245, 158, 11, 0.45);
  --text: #ffffff;
  --muted: #d1d5db;
  --subtle: #9ca3af;
  --amber: #f59e0b;
  --amber-2: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(217, 119, 6, 0.14), transparent 26rem),
    linear-gradient(180deg, #111827 0%, #050608 42%, #111827 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 8, 0.76);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #111827;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 19px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.15);
}

.nav-search {
  display: flex;
  width: min(290px, 28vw);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.7);
  overflow: hidden;
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  background: transparent;
  color: #fff;
}

.nav-search button,
.wide-search button,
.hero-search button {
  border: 0;
  padding: 0 18px;
  color: #111827;
  font-weight: 700;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.86);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.hero {
  position: relative;
  height: min(760px, 76vh);
  min-height: 560px;
  overflow: hidden;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-layer {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.08);
}

.hero-layer {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.70) 38%, rgba(5, 6, 8, 0.18) 100%),
    linear-gradient(0deg, #050608 0%, rgba(5, 6, 8, 0.35) 42%, rgba(5, 6, 8, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 160px;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta,
.footer-links,
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(31, 41, 55, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.26);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(10px);
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 5;
  width: var(--container);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(260px, 560px) 1fr;
  gap: 18px;
  align-items: center;
}

.hero-search,
.wide-search {
  display: flex;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-search input,
.wide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: #fff;
  background: transparent;
}

.hero-quick-links {
  justify-content: flex-end;
}

.hero-quick-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 132px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section {
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p,
.category-overview-body p,
.text-panel p,
.card-body p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading p {
  margin: 8px 0 0;
}

.section-link,
.text-link {
  flex-shrink: 0;
  color: var(--amber);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.20);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 80px rgba(120, 53, 15, 0.22);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.card-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  opacity: 0.88;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-year,
.rank-flag {
  position: absolute;
  z-index: 4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  color: #111827;
  background: rgba(245, 158, 11, 0.95);
}

.rank-flag {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-body {
  padding: 16px;
}

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

.card-body h3 a:hover {
  color: var(--amber);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: 13px;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.tag-row span {
  padding: 4px 8px;
  color: var(--subtle);
  background: rgba(55, 65, 81, 0.55);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 0.58;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card span {
  margin: 92px 18px 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0 18px 18px;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 106px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(217, 119, 6, 0.22), transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.22), transparent 24rem),
    rgba(17, 24, 39, 0.72);
}

.page-hero-inner {
  width: var(--container);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 14px;
}

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

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  height: 170px;
  overflow: hidden;
}

.category-cover-stack img {
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  padding: 20px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.72);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: 0;
  padding: 0 15px;
  color: #fff;
  background: rgba(5, 6, 8, 0.58);
}

.filter-panel select option {
  background: #111827;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(17, 24, 39, 0.58);
}

.empty-state.is-visible {
  display: block;
}

.wide-search {
  max-width: 680px;
  margin-top: 24px;
}

.detail-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.detail-backdrop,
.detail-backdrop img,
.detail-layer {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-layer {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.72), rgba(5, 6, 8, 0.40)),
    linear-gradient(0deg, #050608 0%, rgba(5, 6, 8, 0.45) 68%, rgba(5, 6, 8, 0.2) 100%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 58px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  margin-top: 36px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 68px);
}

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

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

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.text-panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.72);
}

.text-panel h2 {
  margin: 0 0 14px;
}

.text-panel p {
  margin: 0;
  font-size: 16px;
}

.player-section {
  padding-top: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  font-size: 32px;
  box-shadow: 0 20px 60px rgba(217, 119, 6, 0.34);
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.74);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-weight: 900;
  color: var(--amber);
}

.site-footer p {
  margin: 0;
}

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

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

[hidden] {
  display: none !important;
}

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

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

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

@media (max-width: 860px) {
  .nav-wrap {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(5, 6, 8, 0.95);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-search {
    display: none;
  }

  .hero {
    min-height: 680px;
    height: auto;
  }

  .hero-content {
    padding: 96px 0 240px;
  }

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

  .hero-quick-links {
    justify-content: flex-start;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 184px;
  }

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

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

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

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

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

@media (max-width: 560px) {
  :root {
    --container: min(100% - 24px, 1180px);
    --radius: 18px;
  }

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

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-search,
  .wide-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .hero-search input,
  .wide-search input {
    min-height: 54px;
  }

  .hero-search button,
  .wide-search button {
    min-height: 48px;
  }

  .movie-grid,
  .ranking-grid,
  .category-strip,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-inner {
    padding-top: 38px;
  }
}
