:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --orange: #f97316;
  --blue: #38bdf8;
  --green: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(56, 189, 248, 0.18), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0b1120 40%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-size: 1.22rem;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b 60%, #fb923c);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.45);
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #dbeafe;
  font-size: 0.96rem;
}

.nav-links a,
.mobile-menu a {
  border-radius: 14px;
  padding: 10px 14px;
  transition: 0.25s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

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

.mobile-menu {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  margin-top: 6px;
  color: #dbeafe;
}

.mobile-menu.is-open {
  display: block;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42), #020617),
    radial-gradient(circle at 55% 24%, rgba(245, 158, 11, 0.26), transparent 28rem),
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.24), transparent 24rem);
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  z-index: -3;
}

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

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

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 620px;
  padding: 88px 22px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
  background: linear-gradient(90deg, #fff7ed, #fbbf24 48%, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 24px 0 28px;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
  max-width: 680px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.28);
}

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

.btn-ghost {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.hero-search {
  margin-top: 28px;
  display: flex;
  max-width: 620px;
  border-radius: 999px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow);
}

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

.hero-search button {
  border: 0;
  cursor: pointer;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.52));
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 18px;
  backdrop-filter: blur(18px);
}

.hero-feature {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
}

.hero-feature img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.86;
}

.hero-feature-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
}

.hero-feature-info h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.hero-feature-info p {
  color: #dbeafe;
  line-height: 1.7;
  margin: 0 0 16px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #f59e0b;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 22px 0;
}

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

.section-kicker {
  color: #fbbf24;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.section h1,
.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-desc,
.page-title p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 0;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 22px 72px rgba(245, 158, 11, 0.13);
}

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.34), transparent 16rem),
    linear-gradient(145deg, #1e293b, #020617);
}

.poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.25s ease;
}

.movie-card:hover .poster-shell img {
  transform: scale(1.08);
}

.poster-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.76));
  pointer-events: none;
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.38);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  border-radius: 999px;
  padding: 7px 10px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f97316);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.36);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a5b4fc;
  font-size: 0.83rem;
  margin-bottom: 10px;
}

.movie-meta-row span {
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  padding: 5px 8px;
}

.movie-card h3 {
  min-height: 2.8em;
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.38;
}

.movie-card h3 a:hover {
  color: #fbbf24;
}

.movie-card p {
  min-height: 4.8em;
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.93rem;
  margin: 0 0 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.meta-pill {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.8rem;
}

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.2), transparent 14rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.86));
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.35);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

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

.category-tile span {
  color: #fbbf24;
  font-weight: 800;
}

.page-title {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 22px 10px;
}

.filter-bar,
.search-panel {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-panel input,
.filter-bar input,
.filter-bar select {
  flex: 1 1 260px;
  min-width: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 13px 16px;
  outline: 0;
}

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.rank-list {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-item:hover {
  background: rgba(245, 158, 11, 0.13);
}

.rank-number {
  color: #fbbf24;
  font-weight: 900;
  font-size: 1.2rem;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-item strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item em {
  display: block;
  color: var(--soft);
  font-style: normal;
  margin-top: 4px;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 0;
  color: var(--soft);
}

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

.detail-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 22px 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 20%, rgba(245, 158, 11, 0.25), transparent 15rem),
    linear-gradient(145deg, #1e293b, #020617);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.detail-info p {
  color: #dbeafe;
  line-height: 1.86;
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.player-card {
  max-width: 1180px;
  margin: 54px auto 0;
  padding: 0 22px;
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.player-button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb923c);
  box-shadow: 0 18px 55px rgba(245, 158, 11, 0.42);
  cursor: pointer;
  font-size: 2rem;
}

.content-panel {
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.article-box,
.side-box {
  border-radius: 28px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
}

.article-box h2,
.side-box h2,
.side-box h3 {
  margin: 0 0 16px;
}

.article-box p {
  color: var(--muted);
  line-height: 1.95;
  margin: 0 0 20px;
}

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

.related-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-link:hover {
  background: rgba(245, 158, 11, 0.12);
}

.related-link img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.related-link strong,
.related-link span {
  display: block;
}

.related-link span {
  color: var(--soft);
  margin-top: 5px;
  font-size: 0.88rem;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.site-footer {
  margin-top: 84px;
  padding: 58px 22px 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), #020617 72%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  color: #fbbf24;
  margin: 0 0 14px;
}

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

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

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

.footer-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 20px;
  color: var(--soft);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .hero-inner,
  .rank-layout,
  .content-panel {
    grid-template-columns: 1fr;
  }

  .rank-list {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-inner {
    padding-top: 64px;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 12px;
  }

  .hero-feature,
  .hero-feature img {
    min-height: 330px;
    height: 330px;
  }

  .hero-search {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input {
    padding: 14px 16px;
  }

  .card-grid,
  .category-grid,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .article-box,
  .side-box {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    padding: 0 14px;
  }

  .brand {
    font-size: 1rem;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .section,
  .page-title,
  .breadcrumb,
  .detail-hero,
  .player-card,
  .content-panel,
  .filter-bar,
  .search-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .movie-card p {
    min-height: auto;
  }
}
