:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: #334155;
  --muted: #94a3b8;
  --text: #ffffff;
  --text-soft: #d1d5db;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --radius: 1.2rem;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 5%, rgba(59, 130, 246, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
}

.header-inner {
  max-width: 1280px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.brand-text {
  font-size: 1.12rem;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-light);
  background: rgba(255, 255, 255, 0.07);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.86);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.filter-box input,
.filter-box select {
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.filter-chip,
.play-button,
.inline-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.22s ease;
}

.header-search button,
.mobile-search button {
  margin-right: 4px;
  padding: 8px 14px;
  color: #111827;
  background: var(--amber);
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: calc(86vh - var(--header-h));
  overflow: hidden;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: calc(86vh - var(--header-h));
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 50px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.85;
}

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

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

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

.secondary-btn,
.inline-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.secondary-btn:hover,
.inline-btn:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
  pointer-events: none;
}

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

.hero-poster-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-poster-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.hero-poster-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.hero-dot.active {
  background: var(--amber);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98));
}

.page-hero .container {
  padding-top: 72px;
  padding-bottom: 64px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 18px 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 1.08rem;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  letter-spacing: -0.025em;
}

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

.section-heading a {
  color: var(--amber-light);
  font-weight: 700;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.play-mini,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.play-mini {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #111827;
  background: var(--amber);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.movie-card:hover .play-mini {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111827;
  background: var(--amber-light);
}

.movie-info {
  padding: 14px 14px 16px;
}

.movie-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}

.movie-info h3 {
  margin: 8px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

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

.movie-info p {
  min-height: 3.2em;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 0.78rem;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 44%),
    rgba(15, 23, 42, 0.78);
  transition: 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.54);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.category-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.category-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--amber-light);
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr;
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  transition: 0.22s ease;
}

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

.rank-row strong {
  width: 28px;
  color: var(--amber-light);
  text-align: center;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row span {
  min-width: 0;
}

.rank-row b,
.rank-row em {
  display: block;
}

.rank-row b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-row i {
  color: var(--amber-light);
  font-style: normal;
  font-weight: 700;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-box input,
.filter-box select {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
}

.filter-box select option {
  background: #0f172a;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-chip.active {
  color: #111827;
  background: var(--amber);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 22px;
}

.empty-state.show {
  display: block;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-side,
.content-card {
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.player-card {
  overflow: hidden;
}

.player-stage {
  position: relative;
  cursor: pointer;
  background: #000;
}

.player-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.player-stage.is-playing {
  cursor: default;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(2, 6, 23, 0.8));
  transition: opacity 0.25s ease;
}

.play-button {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 20px 44px rgba(245, 158, 11, 0.34);
  font-size: 2rem;
  font-weight: 900;
}

.player-info {
  padding: 20px 22px 24px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-side {
  padding: 18px;
}

.detail-side img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-side .tag-list {
  margin-top: 16px;
}

.content-card {
  margin-top: 24px;
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.42rem;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.9;
}

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

.split-band {
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(15, 23, 42, 0.36);
}

@media (max-width: 1120px) {
  .movie-grid,
  .related-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    padding: 0 18px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 82px;
  }

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

  .movie-grid,
  .related-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

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

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

@media (max-width: 620px) {
  .container {
    padding: 40px 16px;
  }

  .page-hero .container {
    padding-top: 46px;
    padding-bottom: 42px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
    gap: 28px;
  }

  .movie-grid,
  .related-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

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

  .rank-row i {
    display: none;
  }

  .content-card {
    padding: 20px;
  }
}
