:root {
  --bg: #030712;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(17, 24, 39, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(75, 85, 99, 0.35), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(30, 41, 59, 0.55), transparent 30rem),
    linear-gradient(180deg, #030712 0%, #0f172a 42%, #030712 100%);
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 18, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 0 30px rgba(248, 250, 252, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(148, 163, 184, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.mobile-nav {
  display: none;
}

.category-strip {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  overflow-x: auto;
}

.category-strip .nav-link {
  white-space: nowrap;
  font-size: 13px;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(0.9) contrast(1.1);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.7) 48%, rgba(3, 7, 18, 0.24) 100%),
    linear-gradient(0deg, #030712 0%, transparent 34%, rgba(3, 7, 18, 0.18) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 78px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
}

.hero h1,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
}

.hero-summary {
  max-width: 660px;
  margin: 24px 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.text-button,
.more-link,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.search-form button {
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #f8fafc;
}

.ghost-button,
.text-button,
.more-link {
  color: #f8fafc;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
}

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

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 46px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.search-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -34px;
  padding: 20px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-form {
  display: flex;
  flex: 1;
  gap: 12px;
}

.search-form input,
.filter-panel input {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.64);
  outline: 0;
  padding: 0 16px;
  font-size: 15px;
}

.quick-links {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.quick-links a {
  color: var(--soft);
  font-size: 14px;
}

.section-block,
.page-main {
  padding: 72px 0 0;
}

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

.section-head h2,
.page-title h1,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  font-weight: 300;
  color: #ffffff;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 250, 252, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(3, 7, 18, 0.86) 100%);
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.movie-info {
  padding: 16px;
}

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

.meta-row span {
  display: inline-flex;
}

.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--soft);
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile,
.category-overview-card,
.filter-panel,
.detail-article,
.detail-side,
.sitemap-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.category-tile {
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-tile strong {
  font-size: 22px;
  font-weight: 400;
}

.category-tile span,
.category-tile em {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
}

.category-tile div {
  display: grid;
  gap: 5px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.page-title {
  padding: 52px 0 30px;
}

.page-title h1 {
  font-size: clamp(38px, 7vw, 70px);
}

.page-title p:not(.eyebrow) {
  max-width: 760px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding: 22px;
  margin-bottom: 22px;
}

.category-overview-text h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 300;
}

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

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

.movie-card.compact .movie-info p,
.movie-card.compact .tag-row {
  display: none;
}

.filter-panel {
  padding: 18px;
  margin-bottom: 26px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-buttons button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(3, 7, 18, 0.48);
  cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #0f172a;
  background: #f8fafc;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 130px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-num {
  font-size: 28px;
  color: #ffffff;
  font-weight: 300;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

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

.rank-body h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 400;
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--soft);
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

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

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #030712 0%, rgba(3, 7, 18, 0.78) 54%, rgba(3, 7, 18, 0.36) 100%),
    linear-gradient(0deg, #030712 0%, transparent 48%);
}

.detail-hero-inner {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: end;
  padding-bottom: 72px;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f172a;
}

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

.breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 20px;
}

.detail-copy h1 {
  font-size: clamp(38px, 7vw, 78px);
}

.detail-one-line {
  max-width: 780px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.7;
}

.player-section {
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(3, 7, 18, 0.34);
  color: #0f172a;
  cursor: pointer;
}

.player-overlay span {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 34px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
}

.player-overlay.is-hidden {
  display: none;
}

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

.detail-article,
.detail-side {
  padding: 26px;
}

.detail-article p {
  color: var(--soft);
  line-height: 1.9;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: var(--text);
}

.sitemap-group {
  padding: 22px;
  margin-bottom: 22px;
}

.sitemap-group h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 300;
}

.sitemap-group ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 0;
}

.sitemap-group li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 8px;
}

.site-footer {
  margin-top: 86px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  font-size: 24px;
  letter-spacing: 0.08em;
}

.site-footer p,
.site-footer a {
  color: var(--soft);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-weight: 400;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

@media (max-width: 1100px) {
  .card-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-grid,
  .sitemap-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .mobile-nav {
    display: flex;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero {
    height: 82vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .search-band,
  .section-head,
  .rank-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    flex-direction: column;
  }

  .card-grid,
  .listing-grid,
  .category-grid,
  .mini-grid,
  .footer-grid,
  .detail-content,
  .sitemap-group ul {
    grid-template-columns: 1fr;
  }

  .category-overview-card,
  .detail-hero-inner,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

  .detail-hero,
  .detail-hero-inner {
    min-height: 760px;
  }
}
