@charset "UTF-8";

:root {
  --night-950: #0d0d10;
  --night-900: #111116;
  --night-850: #17171d;
  --night-800: #1a1a1f;
  --night-700: #2c2c34;
  --night-500: #6b6b78;
  --night-300: #b6b6c4;
  --night-100: #f5f5fa;
  --gold-500: #eab308;
  --gold-400: #facc15;
  --gold-300: #fde047;
  --ember-500: #ef4444;
  --ember-600: #dc2626;
  --surface: rgba(26, 26, 31, 0.78);
  --surface-strong: rgba(17, 17, 22, 0.94);
  --border: rgba(234, 179, 8, 0.18);
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night-950);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--night-100);
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 6%, rgba(234, 179, 8, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(239, 68, 68, 0.14), transparent 28rem),
    linear-gradient(180deg, #0d0d10 0%, #111116 48%, #0d0d10 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 16, 0.82);
  border-bottom: 1px solid rgba(234, 179, 8, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #16120b;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 48%, var(--ember-500));
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.28);
}

.brand-text {
  font-size: 1.15rem;
  background: linear-gradient(135deg, #ffffff, var(--gold-300));
  -webkit-background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: var(--night-300);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--gold-300);
}

.desktop-nav a:hover {
  background: rgba(44, 44, 52, 0.72);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 14px;
  background: rgba(26, 26, 31, 0.86);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--night-100);
}

.mobile-nav {
  display: none;
  padding: 8px 24px 22px;
  border-top: 1px solid rgba(234, 179, 8, 0.12);
  background: var(--surface-strong);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 88px 24px 64px;
}

.hero-inner,
.content-section,
.page-hero,
.search-band,
.breadcrumb,
.detail-hero,
.player-section {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26, 26, 31, 0.94), rgba(13, 13, 16, 0.58)),
    radial-gradient(circle at 72% 24%, rgba(234, 179, 8, 0.16), transparent 26rem);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  left: -90px;
  top: 120px;
  background: rgba(234, 179, 8, 0.16);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  right: -130px;
  top: 80px;
  background: rgba(239, 68, 68, 0.15);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 44px;
  padding: 64px;
  opacity: 0;
  transform: translateX(40px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  margin-bottom: 14px;
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(234, 179, 8, 0.24);
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.1);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 20px 0 0;
  color: var(--gold-300);
  font-size: clamp(1.3rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.hero-copy p,
.page-hero p,
.detail-info .lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--night-300);
  font-size: 1.12rem;
  line-height: 1.9;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #17120a;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 16px 34px rgba(234, 179, 8, 0.28);
}

.ghost-button {
  color: var(--night-100);
  border: 1px solid rgba(245, 245, 250, 0.14);
  background: rgba(245, 245, 250, 0.06);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.52);
}

.hero-poster::after,
.poster-link::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.compact-card img,
.category-tile img,
.category-cover-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(239, 68, 68, 0.12));
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 38px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 36px;
  height: 10px;
  overflow: hidden;
  text-indent: -99px;
  border: 0;
  border-radius: 99px;
  background: rgba(245, 245, 250, 0.18);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 58px;
  background: var(--gold-400);
}

.search-band {
  margin-top: -22px;
  position: relative;
  z-index: 4;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 24px;
  background: rgba(17, 17, 22, 0.9);
  box-shadow: var(--shadow);
}

.search-panel h2,
.side-panel h2,
.section-heading h2,
.detail-article h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

.site-search-input {
  width: min(480px, 100%);
  height: 52px;
  padding: 0 18px;
  color: var(--night-100);
  border: 1px solid rgba(245, 245, 250, 0.12);
  border-radius: 16px;
  outline: none;
  background: rgba(13, 13, 16, 0.86);
}

.site-search-input:focus {
  border-color: rgba(234, 179, 8, 0.55);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.12);
}

.inline-search {
  width: 280px;
}

.content-section,
.page-hero,
.detail-hero,
.player-section,
.breadcrumb {
  margin-top: 58px;
}

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

.section-heading p {
  margin: 8px 0 0;
  color: var(--night-300);
}

.section-heading a,
.text-link {
  color: var(--gold-300);
}

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

.category-tile {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 22px;
  background: var(--surface);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0.08), rgba(13, 13, 16, 0.85));
}

.category-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
}

.category-tile strong {
  display: block;
  font-size: 1.18rem;
}

.category-tile small,
.compact-card small,
.movie-meta-line,
.ranking-row em {
  color: var(--night-300);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.14);
  border-radius: 22px;
  background: rgba(26, 26, 31, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 179, 8, 0.42);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #17120a;
  background: var(--gold-400);
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.32);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #17120a;
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 245, 250, 0.06);
}

.movie-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--night-300);
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gold-300);
  font-size: 0.78rem;
  background: rgba(234, 179, 8, 0.09);
}

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

.side-panel {
  padding: 22px;
  border: 1px solid rgba(234, 179, 8, 0.14);
  border-radius: 24px;
  background: rgba(17, 17, 22, 0.82);
}

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

.compact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(245, 245, 250, 0.04);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(234, 179, 8, 0.1);
  transform: translateX(3px);
}

.compact-card img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

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

.compact-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-right: 6px;
  border-radius: 999px;
  color: #17120a;
  font-weight: 900;
  background: var(--gold-400);
}

.page-hero {
  min-height: 270px;
  display: flex;
  align-items: center;
  padding: 54px;
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(26, 26, 31, 0.9), rgba(13, 13, 16, 0.68)),
    radial-gradient(circle at 72% 20%, rgba(239, 68, 68, 0.16), transparent 26rem);
  box-shadow: var(--shadow);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(234, 179, 8, 0.14);
  border-radius: 24px;
  background: rgba(26, 26, 31, 0.78);
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 180px;
}

.category-cover-row img {
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 12px;
}

.category-overview-card p {
  color: var(--night-300);
  line-height: 1.75;
}

.ranking-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(245, 245, 250, 0.04);
}

.ranking-row span {
  color: var(--gold-300);
  font-weight: 900;
}

.ranking-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em {
  grid-column: 2;
  font-size: 0.82rem;
  font-style: normal;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--night-300);
  font-size: 0.95rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  border: 1px solid rgba(234, 179, 8, 0.24);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 22px;
}

.detail-meta-grid span {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(245, 245, 250, 0.08);
  border-radius: 16px;
  color: var(--night-100);
  background: rgba(245, 245, 250, 0.05);
}

.detail-meta-grid b {
  color: var(--night-300);
  font-size: 0.78rem;
}

.detail-tags a:hover {
  background: rgba(234, 179, 8, 0.16);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--night-100);
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.7));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: #17120a;
  font-size: 1.7rem;
  background: var(--gold-400);
  box-shadow: 0 20px 45px rgba(234, 179, 8, 0.34);
}

.player-cover strong {
  font-size: 1.08rem;
}

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

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.detail-article {
  padding: 30px;
  border: 1px solid rgba(234, 179, 8, 0.14);
  border-radius: 24px;
  background: rgba(26, 26, 31, 0.72);
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p {
  color: var(--night-300);
  font-size: 1.03rem;
  line-height: 2;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.prev-next a {
  padding: 15px;
  border-radius: 16px;
  color: var(--gold-300);
  background: rgba(234, 179, 8, 0.08);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(234, 179, 8, 0.12);
  background: rgba(13, 13, 16, 0.72);
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 640px;
  color: var(--night-300);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.is-filtered-out {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-slide {
    padding: 46px;
  }

  .hero-poster {
    width: min(340px, 100%);
  }

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

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 0 16px;
  }

  .hero-inner,
  .content-section,
  .page-hero,
  .search-band,
  .breadcrumb,
  .detail-hero,
  .player-section {
    width: min(100% - 32px, 1380px);
  }

  .hero {
    min-height: 860px;
    padding: 48px 0 34px;
  }

  .hero-inner {
    min-height: 780px;
    border-radius: 26px;
  }

  .hero-slide {
    align-content: start;
    gap: 28px;
    padding: 34px 24px 82px;
  }

  .hero-dots {
    left: 24px;
    bottom: 26px;
  }

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

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

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

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

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 1rem;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 24px;
  }

  .detail-article {
    padding: 22px;
  }
}
