* {
  box-sizing: border-box;
}

:root {
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --bg-card: rgba(41, 37, 36, 0.82);
  --bg-card-strong: rgba(28, 25, 23, 0.94);
  --text: #fff7ed;
  --text-muted: #d6d3d1;
  --text-soft: #a8a29e;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --amber-deep: #92400e;
  --line: rgba(245, 158, 11, 0.24);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 83, 9, 0.23), transparent 34rem),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 48%, #0c0a09 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 22px;
  color: #fef3c7;
}

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

.nav-link,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fef3c7;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(146, 64, 14, 0.58);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.35);
  font-weight: 800;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

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

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #1c1917;
}

.hero-stage,
.hero-slide {
  min-height: 590px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.76) 42%, rgba(12, 10, 9, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.92) 0%, transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 590px;
  width: min(720px, 100%);
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-soft);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fffbeb;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.hero h2 {
  margin: 18px 0 0;
  color: #fde68a;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.15;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions,
.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26);
}

.ghost-btn,
.section-more,
.rank-action {
  min-height: 44px;
  padding: 0 18px;
  color: #fef3c7;
  border: 1px solid var(--line);
  background: rgba(28, 25, 23, 0.62);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.42);
  cursor: pointer;
}

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

.home-intro,
.search-panel,
.page-hero,
.content-section,
.rank-list,
.detail-article,
.player-card,
.info-card,
.detail-aside,
.prev-next {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.home-intro,
.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 28px;
}

.home-intro h2,
.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-article h1,
.detail-article h2,
.info-card h2 {
  margin: 0;
  color: #fffbeb;
  letter-spacing: -0.03em;
}

.home-intro h2,
.page-hero h1,
.detail-article h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.home-intro p,
.search-panel p,
.page-hero p,
.detail-article p,
.info-card p,
.movie-card p,
.category-card p,
.rank-row p {
  color: var(--text-muted);
  line-height: 1.72;
}

.search-panel input {
  width: min(440px, 100%);
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 0 20px;
  color: #fffbeb;
  background: rgba(12, 10, 9, 0.56);
  font-size: 16px;
}

.search-panel input:focus {
  border-color: rgba(251, 191, 36, 0.68);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.content-section,
.rank-list {
  margin-top: 28px;
  padding: 28px;
}

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

.section-heading p {
  margin: 0 0 8px;
  color: var(--amber-soft);
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-md);
  background: var(--bg-card-strong);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #292524;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1c1917;
  background: var(--amber-soft);
  font-size: 12px;
  font-weight: 900;
}

.card-content {
  padding: 16px;
}

.card-meta {
  color: var(--amber-soft);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: #fffbeb;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 0;
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.22);
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-card {
  min-height: 170px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 9rem),
    rgba(28, 25, 23, 0.9);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card strong {
  display: block;
  color: #fffbeb;
  font-size: 22px;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.category-card span {
  color: var(--text-soft);
  font-size: 12px;
}

.page-main {
  padding-top: 28px;
}

.page-hero {
  padding: 34px;
}

.small-hero {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28rem),
    rgba(28, 25, 23, 0.84);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(28, 25, 23, 0.9);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #1c1917;
  background: var(--amber-soft);
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: #292524;
}

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

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-row p {
  margin: 0 0 6px;
}

.rank-row span {
  color: var(--amber-soft);
  font-size: 13px;
  font-weight: 800;
}

.detail-main {
  max-width: 1240px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
}

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

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

.detail-primary {
  min-width: 0;
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fffbeb;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 15rem),
    rgba(12, 10, 9, 0.24);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.play-layer.is-hidden {
  display: none;
}

.play-symbol {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.32);
}

.detail-article {
  margin-top: 24px;
  padding: 30px;
}

.detail-article h2 {
  margin-top: 28px;
  font-size: 26px;
}

.detail-article p {
  font-size: 16px;
}

.lead-text {
  color: #fde68a !important;
  font-size: 18px !important;
}

.detail-aside {
  align-self: start;
  padding: 18px;
}

.detail-cover {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #292524;
}

.info-card {
  margin-top: 18px;
  padding: 18px;
  box-shadow: none;
}

.info-card p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  padding-bottom: 11px;
}

.info-card strong {
  color: #fde68a;
}

.info-card span {
  color: var(--text-muted);
  text-align: right;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-links a,
.prev-next a {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.24);
  font-weight: 800;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
}

.related-section {
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.78);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px;
  color: var(--text-soft);
}

.footer-brand {
  color: #fef3c7;
  font-size: 20px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin: 14px 0;
}

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

.is-filter-hidden {
  display: none !important;
}

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

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

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

  .detail-aside {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px;
  }

  .detail-cover {
    margin: 0;
  }
}

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

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

  main {
    padding: 18px 14px 46px;
  }

  .hero,
  .hero-stage,
  .hero-slide,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.62) 100%);
  }

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

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

  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 60px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 3;
    width: max-content;
  }

  .detail-aside {
    display: block;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

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

  .hero h1 {
    font-size: 32px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .content-section,
  .rank-list,
  .detail-article,
  .page-hero,
  .search-panel,
  .home-intro {
    padding: 20px;
  }
}
