
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #171717;
  --panel-soft: #202020;
  --line: #2a2a2a;
  --text: #f8f8f8;
  --muted: #b7b7b7;
  --subtle: #7c7c7c;
  --gold: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 26rem),
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  color: #111;
  font-size: 15px;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.34);
}

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

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active,
.mobile-link.active {
  color: #111;
  background: var(--gold);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-link {
  padding: 13px 15px;
}

main {
  min-height: 70vh;
}

.hero {
  padding-top: 64px;
}

.hero-stage {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(10, 10, 10, 1), transparent 38%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  width: min(680px, calc(100% - 48px));
  transform: translateY(-48%);
  z-index: 3;
}

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

.hero-content h1,
.hero-content h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #e4e4e7;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

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

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

.tag-row span {
  background: rgba(255, 255, 255, 0.08);
  color: #d7d7d7;
}

.tag-row.large span {
  background: var(--gold-soft);
  color: #fbbf24;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  color: #111;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn.line {
  background: transparent;
  color: #fff;
}

.btn.full {
  width: 100%;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(245, 158, 11, 0.9);
  color: #111;
  transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  background: var(--gold);
}

.hero-preview {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 70px;
  z-index: 5;
  width: min(420px, 38vw);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.hero-mini {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hero-mini img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-mini span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.intro-section {
  padding-bottom: 24px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h1,
.section-head h2,
.sub-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p:not(.eyebrow),
.sub-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.inline-head {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-more {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.search-panel {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 24px 0 0;
}

.search-label {
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 800;
}

.site-search {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0 18px;
  font-size: 15px;
}

.site-search:focus {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
}

.movie-meta span,
.detail-meta span {
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.movie-meta span:last-child,
.detail-meta span:last-child {
  border-right: 0;
}

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 58px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.movie-card.compact p {
  min-height: 42px;
  -webkit-line-clamp: 2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 36px;
  align-items: start;
}

.ranking-box,
.category-portal,
.story-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  padding: 26px;
  box-shadow: var(--shadow);
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 40px 48px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border-radius: 18px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.rank-list img {
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num {
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.rank-title,
.rank-meta {
  display: block;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  grid-column: 3;
  margin-top: -10px;
  color: var(--subtle);
  font-size: 12px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-overview-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  padding: 20px;
}

.category-main-link,
.category-overview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.category-main-link strong {
  color: var(--gold);
  font-size: 13px;
}

.category-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-samples,
.overview-links {
  display: grid;
  gap: 8px;
}

.category-samples a,
.overview-links a {
  color: #e4e4e7;
  font-size: 14px;
}

.sub-hero {
  margin-top: 64px;
  min-height: 380px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.22), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.11), transparent 24rem),
    #101010;
}

.sub-hero > div {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 80px 24px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.category-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e5e5;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
}

.category-chip.active,
.category-chip:hover {
  border-color: transparent;
  background: var(--gold);
  color: #111;
}

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

.ranking-page-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
}

.ranking-poster {
  position: relative;
}

.ranking-poster span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.ranking-poster img {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 10px 0 10px;
  font-size: 24px;
}

.ranking-info p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-hero {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
  background: #050505;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.26;
}

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

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.56)), linear-gradient(0deg, var(--bg), transparent 44%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: #cfcfcf;
  font-size: 14px;
}

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

.detail-main {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 820px;
  color: #f4f4f5;
  font-size: 19px;
  line-height: 1.75;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  color: #fff;
  cursor: pointer;
}

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

.play-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  color: #111;
  font-size: 32px;
  box-shadow: 0 18px 60px rgba(245, 158, 11, 0.34);
}

.play-overlay strong {
  font-size: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 10px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #d8d8d8;
  font-size: 16px;
  line-height: 1.9;
}

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

.more-section {
  padding-top: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.92);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 800;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 34px;
  color: var(--subtle);
  font-size: 13px;
}

.is-filtered-out {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

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

  .hero-preview {
    display: none;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .brand-title {
    font-size: 18px;
  }

  .hero-stage {
    height: 78vh;
    min-height: 600px;
  }

  .hero-content {
    top: 54%;
  }

  .hero-control {
    display: none;
  }

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

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

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

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

  .ranking-card {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .page-section {
    padding: 52px 16px;
  }

  .sub-hero > div,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    left: 16px;
    width: calc(100% - 32px);
  }

  .hero-tags span:nth-child(n + 4) {
    display: none;
  }

  .hero-actions,
  .detail-actions {
    display: grid;
  }

  .inline-head {
    display: grid;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 84px 1fr;
  }

  .ranking-info h2 {
    font-size: 19px;
  }
}
