:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: #1e293b;
  --muted: #94a3b8;
  --text: #f8fafc;
  --subtext: #cbd5e1;
  --amber: #f59e0b;
  --orange: #ea580c;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, 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 {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.28);
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-mark,
.movie-card,
.category-card,
.btn,
.mini-card,
.rank-item {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.brand-text strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: var(--subtext);
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  color: var(--subtext);
  padding: 10px 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 670px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.96));
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 62px 62px;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.hero-topline,
.detail-meta,
.movie-meta-line,
.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-topline span,
.eyebrow,
.tag-row span,
.hero-tags span,
.detail-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--subtext);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.hero-topline span,
.eyebrow {
  padding: 7px 13px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-slider {
  position: relative;
  min-height: 448px;
  margin-top: 38px;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  inset: 0;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  position: relative;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 690px;
  margin: 0 0 24px;
  color: var(--subtext);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta-line span {
  padding: 5px 10px;
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.btn.ghost {
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--subtext);
  background: rgba(15, 23, 42, 0.64);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.8));
  box-shadow: var(--shadow);
}

.hero-img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  opacity: 0.92;
}

.hero-play,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.28);
}

.hero-play {
  right: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  font-size: 28px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.46);
}

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

.hero-search {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: 30px auto 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-search input,
.search-field input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  outline: none;
  background: rgba(2, 6, 23, 0.52);
  color: #fff;
}

.hero-search input {
  flex: 1;
  min-height: 48px;
  border: 0;
  padding: 0 16px;
  background: transparent;
}

.hero-search button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 24px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

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

.section-heading span {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #fbbf24;
  font-weight: 800;
}

.section-heading.compact {
  margin-bottom: 18px;
}

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

.movie-card,
.category-card,
.story-card,
.player-card,
.detail-info,
.ranking-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
}

.movie-card {
  overflow: hidden;
}

.movie-card:hover,
.category-card:hover,
.mini-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.85));
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform: scale(0.92);
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card h2,
.rank-copy h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h2 a:hover,
.rank-copy h2 a:hover {
  color: #fbbf24;
}

.movie-card p,
.rank-copy p,
.category-card p,
.story-card p,
.page-hero p,
.detail-lead,
.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.movie-card p {
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.category-card {
  padding: 22px;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-card-head span {
  font-size: 24px;
  font-weight: 900;
}

.category-card-head strong {
  color: #fbbf24;
  font-size: 14px;
}

.category-card p {
  margin: 14px 0 18px;
}

.category-samples,
.mini-grid {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.26);
}

.mini-img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.8);
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.mini-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.ranking-panel,
.side-panel {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.22);
}

.rank-number {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-img {
  width: 92px;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.8);
}

.rank-copy h2 {
  margin-top: 8px;
}

.ranking-list.expanded .rank-item {
  grid-template-columns: 64px 110px minmax(0, 1fr);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.8));
}

.page-hero > div,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero > div {
  padding: 72px 0;
}

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

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

.breadcrumb a:hover {
  color: #fbbf24;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(2, 6, 23, 0.52);
}

.search-field input {
  min-height: 46px;
  border: 0;
  padding: 0;
  background: transparent;
}

.filter-select {
  min-height: 48px;
  padding: 0 12px;
}

.detail-hero {
  padding: 42px 0 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.58));
}

.player-trigger span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 22px 55px rgba(245, 158, 11, 0.3);
  font-size: 36px;
}

.player-trigger.is-hidden {
  display: none;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 18px 0 16px;
}

.detail-lead {
  font-size: 18px;
}

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

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

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

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.story-card p {
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(15, 23, 42, 0.92);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand span:last-child {
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 540px;
  margin-top: 16px;
}

.footer-inner h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.image-hidden {
  opacity: 0;
}

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slide,
  .detail-grid,
  .split-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    min-height: 430px;
  }

  .hero-img {
    height: 430px;
  }

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

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

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

@media (max-width: 720px) {
  .site-nav,
  .mobile-menu,
  .hero-inner,
  .section-wrap,
  .page-hero > div,
  .detail-hero,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 34px 0 48px;
  }

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

  .hero-slide {
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-poster,
  .hero-img {
    min-height: 390px;
    height: 390px;
  }

  .hero-search,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button {
    width: 100%;
  }

  .movie-grid,
  .category-grid,
  .category-grid.large,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item,
  .ranking-list.expanded .rank-item {
    grid-template-columns: 44px 76px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-img {
    width: 76px;
    height: 106px;
  }

  .rank-copy p {
    display: none;
  }

  .detail-info,
  .story-card,
  .ranking-panel,
  .side-panel,
  .category-card {
    padding: 20px;
  }
}
