* {
  box-sizing: border-box;
}

:root {
  --night-950: #020617;
  --night-925: #06101f;
  --night-900: #0f172a;
  --night-850: #13213a;
  --night-800: #1e293b;
  --night-700: #334155;
  --gold-500: #eab308;
  --gold-400: #facc15;
  --gold-300: #fde047;
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --line: rgba(234, 179, 8, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --glow: 0 0 30px rgba(234, 179, 8, 0.32);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(30, 64, 175, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 46%, var(--night-950));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

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

img,
video {
  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;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
}

.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: var(--glow);
}

.brand-text {
  white-space: nowrap;
  font-size: 19px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a,
.mobile-menu a,
.footer-grid a {
  color: var(--text-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.footer-grid a:hover {
  color: var(--gold-400);
}

.nav-search,
.mobile-search,
.big-search,
.page-filter,
.live-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.page-filter input,
.live-search input {
  width: 100%;
  border: 1px solid rgba(234, 179, 8, 0.24);
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.78);
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.page-filter input:focus,
.live-search input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}

.nav-search button,
.mobile-search button,
.big-search button,
.page-filter button,
.live-search button,
.primary-btn,
.ghost-btn,
.hero-controls button,
.quick-filter-row button {
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  font-weight: 800;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.page-filter button:hover,
.live-search button:hover,
.primary-btn:hover,
.hero-controls button:hover,
.quick-filter-row button:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.nav-search {
  width: 292px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.85);
}

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

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(234, 179, 8, 0.12);
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(234, 179, 8, 0.14);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.58);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.34)),
    linear-gradient(0deg, var(--night-950), rgba(2, 6, 23, 0.08) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 52px;
  padding: 78px 0 84px;
}

.hero-copy {
  max-width: 760px;
  animation: slide-up 0.6s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 999px;
  color: var(--gold-300);
  background: rgba(234, 179, 8, 0.09);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 12px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.category-chips,
.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags,
.hero-actions {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.category-chips a,
.quick-filter-row button,
.filter-chip {
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.76);
  padding: 8px 13px;
}

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

.ghost-btn {
  border: 1px solid rgba(234, 179, 8, 0.24);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.78);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
  transform: rotate(1.2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 6, 23, 0.72));
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.7);
}

.hero-dot {
  width: 10px;
  min-width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.34);
  padding: 0;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--gold-400);
}

.quick-search {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  margin-top: -42px;
  position: relative;
  z-index: 6;
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 28px;
}

.quick-search h2,
.section-heading h2,
.story-card h2,
.category-overview-card h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.big-search {
  min-width: 0;
}

.category-chips {
  grid-column: 1 / -1;
}

.category-chips a:hover,
.filter-chip:hover {
  color: var(--gold-300);
  border-color: var(--gold-500);
}

.page-section {
  padding: 76px 0 0;
}

.no-top {
  padding-top: 28px;
}

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

.section-link {
  color: var(--gold-300);
  font-weight: 800;
}

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

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

.movie-card {
  border: 1px solid rgba(234, 179, 8, 0.13);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: var(--shadow), var(--glow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(2, 6, 23, 0.8));
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #111827;
  background: var(--gold-400);
  box-shadow: var(--glow);
}

.movie-card-body {
  padding: 14px 14px 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--text-main);
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--gold-300);
}

.movie-meta,
.movie-desc,
.category-overview-card p,
.site-footer p {
  color: var(--text-muted);
}

.movie-meta {
  margin: 8px 0;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  font-size: 12px;
  padding: 5px 9px;
}

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

.category-card {
  min-height: 180px;
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.16), transparent 50%),
    rgba(15, 23, 42, 0.78);
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 179, 8, 0.42);
  box-shadow: var(--glow);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-300);
  font-size: 22px;
  font-weight: 900;
}

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

.inner-page,
.detail-page {
  padding-top: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  margin: 20px 0 22px;
}

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

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  color: var(--text-muted);
  margin-right: 10px;
}

.page-hero {
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.15), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: var(--shadow);
  padding: 44px;
}

.small-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-filter,
.live-search {
  max-width: 760px;
  margin-top: 26px;
}

.related-cats {
  margin-top: 22px;
}

.category-overview {
  display: grid;
  gap: 22px;
  padding: 34px 0 76px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(234, 179, 8, 0.15);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  padding: 18px;
}

.category-cover {
  border-radius: 22px;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-link-list a {
  border-radius: 999px;
  color: var(--gold-300);
  background: rgba(234, 179, 8, 0.08);
  padding: 7px 11px;
}

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

.quick-filter-row {
  margin-top: 18px;
}

.quick-filter-row button {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.82);
}

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 34px;
  align-items: stretch;
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.14), transparent 30rem),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  padding: 24px;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 66px);
}

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

.detail-meta div {
  border: 1px solid rgba(234, 179, 8, 0.12);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
  padding: 14px;
}

.detail-meta dt {
  color: var(--text-muted);
  font-size: 13px;
}

.detail-meta dd {
  margin: 6px 0 0;
  color: var(--gold-300);
  font-weight: 900;
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  padding-top: 42px;
}

.compact-heading {
  margin-bottom: 18px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.74));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: var(--glow);
  font-size: 34px;
  padding-left: 5px;
}

.story-card {
  border: 1px solid rgba(234, 179, 8, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  padding: 26px;
  margin-bottom: 18px;
}

.story-card p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.9;
  margin-top: 14px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid rgba(234, 179, 8, 0.16);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-grid nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.footer-brand {
  color: var(--gold-300);
  font-size: 22px;
}

.footer-grid p {
  max-width: 540px;
  margin-top: 12px;
  line-height: 1.75;
}

.footer-bottom {
  border-top: 1px solid rgba(234, 179, 8, 0.1);
  color: var(--text-muted);
  text-align: center;
  padding: 18px;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

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

  .nav-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 820px) {
  .nav-bar {
    height: 66px;
  }

  .brand-text {
    font-size: 16px;
  }

  .nav-search {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 54px;
  }

  .hero-poster {
    max-width: 220px;
    margin: 0 auto;
  }

  .quick-search,
  .footer-grid,
  .detail-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding: 28px;
  }

  .footer-grid nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-actions,
  .big-search,
  .page-filter,
  .live-search {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .rank-grid,
  .rank-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 126px 1fr;
  }

  .poster-link img {
    height: 100%;
    min-height: 190px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .detail-hero {
    padding: 16px;
  }

  .detail-poster img {
    min-height: auto;
  }

  .play-circle {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }
}
