
:root {
  color-scheme: dark;
  --page-bg: #050505;
  --panel-bg: rgba(17, 24, 39, 0.88);
  --panel-bg-strong: #111827;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(251, 191, 36, 0.34);
  --text: #f8fafc;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --amber: #fbbf24;
  --amber-strong: #f59e0b;
  --amber-soft: #fde68a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(146, 64, 14, 0.22), transparent 34rem),
    linear-gradient(180deg, #050505 0%, #111827 42%, #030712 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.94), rgba(17, 24, 39, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.26);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber-strong));
  color: #111827;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.34);
}

.brand-name {
  font-size: 1.55rem;
  background: linear-gradient(90deg, #fde68a, #fff7ed, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d1d5db;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--amber);
  transition: transform 0.2s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.72);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.20) 100%),
    linear-gradient(0deg, #050505 0%, transparent 38%, rgba(0, 0, 0, 0.22) 100%);
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  max-width: 850px;
  margin: 18px 0 22px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.24);
  color: #fcd34d;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.button-primary,
.button-ghost,
.button-small,
.search-panel button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button-primary,
.search-panel button,
.hero-search button {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #111827;
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.32);
}

.button-ghost {
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(17, 24, 39, 0.56);
}

.button-primary:hover,
.button-ghost:hover,
.button-small:hover,
.search-panel button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(251, 191, 36, 0.24);
}

.hero-thumbs {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(17, 24, 39, 0.62);
  color: #e5e7eb;
  cursor: pointer;
  backdrop-filter: blur(12px);
  text-align: left;
}

.hero-dot img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-dot.is-active {
  border-color: rgba(251, 191, 36, 0.80);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 112px;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(16px);
}

.hero-search input,
.search-panel input {
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  padding: 0 16px;
}

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

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

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

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: var(--amber);
  font-weight: 900;
}

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

.movie-card,
.movie-card-wide {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.92));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.movie-card-wide:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.36);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35), 0 0 30px rgba(251, 191, 36, 0.10);
}

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

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

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.movie-card-wide:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 62%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after,
.movie-card-wide:hover .movie-cover::after {
  opacity: 1;
}

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff7ed;
  font-size: 0.76rem;
  font-weight: 900;
}

.play-mark {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.90);
  color: #111827;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

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

.movie-card-body p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

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

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

.category-pill,
.category-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 55%),
    rgba(17, 24, 39, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.36);
}

.category-pill strong,
.category-card strong {
  font-size: 1.25rem;
}

.category-pill span,
.category-card span {
  color: var(--muted);
}

.page-shell {
  padding: 46px 0 72px;
}

.page-hero {
  position: relative;
  padding: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.82)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 38rem);
  box-shadow: var(--shadow);
}

.compact-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -120px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  filter: blur(2px);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 38px 0 0;
}

.pagination a {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-weight: 800;
}

.pagination a.is-current,
.pagination a:hover {
  background: var(--amber);
  color: #111827;
}

.ranking-list {
  display: grid;
  gap: 16px;
  padding-top: 38px;
}

.rank-item {
  display: grid;
  grid-template-columns: 112px 74px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.80);
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-number {
  font-size: 2rem;
  font-weight: 1000;
  color: var(--amber);
}

.rank-main h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rank-main p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.30);
  color: var(--amber);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 26px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(3, 7, 18, 0.50);
}

.search-panel input {
  min-height: 46px;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-empty {
  padding: 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.detail-shell {
  padding: 38px 0 72px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-card,
.aside-card,
.poster-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #111827;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-card {
  padding: 34px;
}

.detail-card .lead {
  color: #e5e7eb;
  font-size: 1.12rem;
  line-height: 1.8;
}

.detail-card h2 {
  margin: 30px 0 12px;
  color: var(--amber);
}

.detail-card p {
  color: #d1d5db;
  line-height: 1.9;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.54);
}

.meta-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.80rem;
}

.meta-grid span {
  color: #fff7ed;
  font-weight: 800;
}

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

.detail-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.aside-card {
  padding: 22px;
}

.aside-card h2 {
  margin: 0 0 16px;
}

.side-recommend-list {
  display: grid;
  gap: 12px;
}

.side-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 86px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.66), #030712);
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #fde68a;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

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

  .feature-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

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

  .hero-thumbs {
    grid-template-columns: repeat(5, 1fr);
    overflow-x: auto;
  }

  .hero-dot span {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.98);
  }

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

  .hero {
    min-height: 720px;
  }

  .hero-content {
    min-height: 720px;
    padding-top: 90px;
    padding-bottom: 220px;
  }

  .hero-search,
  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .hero-thumbs {
    bottom: 22px;
    grid-template-columns: repeat(5, 68px);
    justify-content: start;
  }

  .movie-grid,
  .stack-list,
  .category-pill-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .detail-card {
    padding: 26px;
  }

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

  .rank-number,
  .rank-item .button-small {
    grid-column: 1 / -1;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}
