:root {
  --night-950: #050608;
  --night-900: #0b0f17;
  --night-850: #101622;
  --night-800: #151d2b;
  --night-700: #243044;
  --night-500: #7b879a;
  --night-300: #c9d1df;
  --night-100: #f2f6ff;
  --gold-500: #f5c451;
  --gold-400: #f8d878;
  --ember-500: #f06b35;
  --ember-400: #ff9466;
  --shadow-glow: 0 18px 50px rgba(245, 196, 81, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--night-100);
  background:
    radial-gradient(circle at 15% -10%, rgba(245, 196, 81, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(240, 107, 53, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 36%, var(--night-950));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 196, 81, 0.14);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--gold-400), var(--ember-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--night-950);
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  box-shadow: var(--shadow-glow);
  font-size: 14px;
}

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

.desktop-nav a,
.mobile-panel a {
  color: var(--night-300);
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.06);
}

.header-search {
  display: flex;
  align-items: center;
  width: 300px;
  border: 1px solid rgba(245, 196, 81, 0.18);
  background: rgba(21, 29, 43, 0.86);
  border-radius: 12px;
  overflow: hidden;
}

.header-search input,
.mobile-panel input,
.quick-search-panel input,
.filter-bar input {
  width: 100%;
  color: var(--night-100);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 12px 14px;
}

.header-search button,
.mobile-panel button,
.quick-search-panel button {
  border: 0;
  color: var(--night-950);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  padding: 12px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--night-100);
  background: rgba(255, 255, 255, 0.07);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(245, 196, 81, 0.12);
  padding: 14px;
  background: rgba(8, 12, 18, 0.96);
}

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

.mobile-panel nav {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.mobile-panel form {
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(245, 196, 81, 0.18);
  background: var(--night-800);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 196, 81, 0.12);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.38;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.55) 48%, rgba(5, 6, 8, 0.92)),
    linear-gradient(180deg, rgba(5, 6, 8, 0.16), rgba(5, 6, 8, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 70px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--gold-400);
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.22);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-text h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-text p {
  max-width: 680px;
  color: var(--night-300);
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 24px;
}

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

.hero-tags span,
.tag-row span {
  color: var(--gold-400);
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.filter-bar a,
.section-heading a,
.overview-title a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--night-950);
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  box-shadow: var(--shadow-glow);
}

.ghost-btn,
.filter-bar a,
.section-heading a,
.overview-title a {
  color: var(--night-100);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-bar a:hover,
.section-heading a:hover,
.overview-title a:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48), var(--shadow-glow);
  border: 1px solid rgba(245, 196, 81, 0.22);
}

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

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: var(--night-950);
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(5, 6, 8, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px;
  backdrop-filter: blur(14px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--night-100);
  background: rgba(255, 255, 255, 0.1);
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
}

.quick-search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(16, 22, 34, 0.92);
  border: 1px solid rgba(245, 196, 81, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.quick-search-panel form {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  background: var(--night-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  color: var(--night-300);
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

section.container {
  margin-top: 72px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.heading-line {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.54), transparent);
}

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

.poster-card,
.wide-card,
.category-tile,
.category-overview-card,
.rank-row,
.detail-content article,
.detail-content aside {
  background: rgba(21, 29, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.poster-card:hover,
.wide-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.rank-row:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 196, 81, 0.36);
  background: rgba(25, 35, 52, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.poster-card figure,
.wide-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--night-800);
}

.poster-card figure {
  aspect-ratio: 2 / 3;
}

.poster-card img,
.wide-card img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.poster-card:hover img,
.wide-card:hover img,
.category-tile:hover img {
  transform: scale(1.06);
}

.poster-card figure::after,
.wide-card figure::after,
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 6, 8, 0.82));
  pointer-events: none;
}

.poster-card strong,
.wide-card em {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--night-950);
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  padding: 5px 8px;
  border-radius: 8px;
  font-style: normal;
  font-size: 12px;
  z-index: 2;
}

.poster-info,
.wide-card div {
  padding: 16px;
}

.poster-info h3,
.wide-card h3,
.rank-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--night-100);
}

.poster-info p,
.wide-card p,
.rank-row p,
.category-tile p,
.category-overview-card p {
  color: var(--night-300);
  margin: 0 0 12px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--night-500);
  font-size: 13px;
  margin-bottom: 10px;
}

.meta-line span:first-child {
  color: var(--gold-400);
  font-weight: 800;
}

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

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-main {
  padding: 42px 0 80px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 52px;
  background:
    radial-gradient(circle at 12% 15%, rgba(245, 196, 81, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(21, 29, 43, 0.96), rgba(8, 12, 18, 0.92));
  border: 1px solid rgba(245, 196, 81, 0.18);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--night-300);
  line-height: 1.8;
  font-size: 18px;
}

.overview-stack {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.category-overview-card {
  padding: 24px;
}

.overview-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.overview-title h2 {
  margin: 0;
  font-size: 28px;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(16, 22, 34, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-bar input {
  min-height: 48px;
  background: var(--night-800);
  border-radius: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--night-950);
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  font-weight: 900;
}

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

.rank-row strong {
  color: var(--gold-400);
  font-size: 22px;
}

.detail-main {
  padding-bottom: 80px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(245, 196, 81, 0.12);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.28;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.68), rgba(5, 6, 8, 0.94));
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--night-300);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--gold-400);
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 196, 81, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.lead {
  color: var(--night-300);
  line-height: 1.85;
  font-size: 19px;
  max-width: 760px;
}

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

.detail-meta span {
  color: var(--night-100);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
}

.large-tags {
  margin-bottom: 26px;
}

.player-section {
  margin-top: 56px;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(245, 196, 81, 0.2);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.48);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(5, 6, 8, 0.18), rgba(5, 6, 8, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: var(--night-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  box-shadow: var(--shadow-glow);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 36px;
}

.detail-content article,
.detail-content aside {
  padding: 28px;
}

.detail-content h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-content p {
  color: var(--night-300);
  line-height: 1.9;
  margin: 0 0 24px;
}

.detail-content dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.detail-content dt {
  color: var(--night-500);
}

.detail-content dd {
  margin: 0;
  color: var(--night-100);
}

.site-footer {
  margin-top: 88px;
  padding: 44px 0 28px;
  border-top: 1px solid rgba(245, 196, 81, 0.12);
  background: rgba(5, 6, 8, 0.72);
}

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

.footer-grid p,
.copyright {
  color: var(--night-500);
  line-height: 1.8;
}

.footer-grid h3 {
  margin-top: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--night-300);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 760px) {
  .brand {
    font-size: 17px;
  }

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

  .hero-content {
    padding-top: 44px;
    gap: 28px;
  }

  .hero-text h1,
  .detail-info h1 {
    letter-spacing: -0.03em;
  }

  .hero-text p,
  .lead,
  .page-hero p {
    font-size: 16px;
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
  }

  .quick-search-panel form,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .page-hero {
    padding: 32px 22px;
    border-radius: 22px;
  }

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

  .rank-row img {
    width: 74px;
    height: 100px;
  }

  .rank-row strong {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

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

  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
