:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #111827;
  --line: rgba(245, 158, 11, 0.22);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #ea580c;
  --red: #dc2626;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.12), transparent 34rem),
    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,
video {
  max-width: 100%;
  display: block;
}

img.is-missing {
  opacity: 0;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.26);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.36);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong,
.footer-logo strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: transparent;
  background: linear-gradient(90deg, var(--amber-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--muted-strong);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-light);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
}

.header-search input,
.big-search input {
  width: 230px;
  border: 0;
  outline: none;
  padding: 11px 15px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.big-search button {
  border: 0;
  padding: 11px 18px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  cursor: pointer;
  font-weight: 900;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-light);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.86);
}

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

.mobile-nav a {
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

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

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-slide {
  position: relative;
  display: none;
  min-height: 650px;
  isolation: isolate;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.6s ease both;
}

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(124, 45, 18, 0.48));
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.96)),
    linear-gradient(0deg, var(--bg), transparent 40%);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy .one-line {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.18);
}

.btn.primary,
.btn.full {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
}

.btn.full {
  width: 100%;
  margin-top: 18px;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.11);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-poster,
.detail-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(30, 41, 59, 0.95));
  box-shadow: var(--shadow);
}

.hero-poster img,
.detail-poster img,
.poster-shell img,
.thumb img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img,
.movie-card:hover .poster-image,
.category-card:hover img,
.horizontal-card:hover img {
  transform: scale(1.08);
}

.hero-poster span,
.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--amber-light), var(--orange));
}

.category-strip {
  margin-top: -38px;
  position: relative;
  z-index: 8;
}

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

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

.category-tile,
.category-card a {
  display: block;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(30, 41, 59, 0.96);
}

.category-tile span,
.category-card h2 {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 900;
}

.category-tile strong,
.category-card p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.section-wrap {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.section-heading h2,
.rank-panel h2,
.article-content h2,
.detail-side h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.section-action {
  flex: none;
  color: var(--amber-light);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.56);
  background: rgba(30, 41, 59, 0.92);
}

.poster-link,
.poster-shell {
  display: block;
}

.poster-shell {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.96));
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 46%);
  opacity: 0.72;
}

.play-chip {
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  font-size: 0.82rem;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.meta-row a {
  color: var(--amber-light);
}

.movie-card h3,
.horizontal-card h3 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

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

.movie-card p,
.horizontal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.rank-panel,
.detail-side {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.5);
}

.list-rank {
  color: var(--amber-light);
  font-weight: 900;
}

.thumb {
  overflow: hidden;
  width: 78px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.96));
}

.page-hero {
  padding-top: 98px;
  padding-bottom: 34px;
}

.simple-hero,
.category-hero {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card.large a {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.category-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.96));
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.52));
}

.category-card .eyebrow,
.category-card h2,
.category-card p {
  position: relative;
  z-index: 1;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  isolation: isolate;
}

.detail-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.7);
  font-weight: 800;
}

.player-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.movie-player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.26), transparent 28%),
    rgba(2, 6, 23, 0.62);
  cursor: pointer;
  z-index: 2;
}

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

.play-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  font-size: 2rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.play-overlay strong {
  font-size: 1.15rem;
}

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

.article-content {
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
}

.article-content p {
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: 1.03rem;
}

.detail-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--amber-light);
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-side dd {
  margin: -8px 0 10px;
  color: var(--muted-strong);
}

.big-search {
  width: min(620px, 100%);
  display: flex;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.big-search input {
  flex: 1;
  width: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #000000);
}

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

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--amber-light);
  font-size: 1rem;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .rank-panel,
  .sticky-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 68px;
  }

  .brand-copy em {
    display: none;
  }

  .hero-section,
  .hero-slide,
  .hero-inner {
    min-height: 620px;
  }

  .hero-inner {
    padding: 54px 0 92px;
    gap: 28px;
  }

  .section-heading,
  .footer-bottom {
    display: block;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .section-wrap {
    width: min(100% - 22px, 1180px);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: auto 68px minmax(0, 1fr);
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .big-search {
    border-radius: 20px;
    flex-direction: column;
  }

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