* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(30, 41, 59, 0.52);
  --panel-strong: rgba(30, 41, 59, 0.82);
  --border: rgba(51, 65, 85, 0.86);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --teal: #2dd4bf;
  --teal-strong: #14b8a6;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--teal);
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.16);
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.brand:hover,
.footer-links a:hover,
.footer-brand:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.78);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #0f172a;
  padding: 12px 24px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.mobile-nav-link {
  padding: 12px 0;
  color: #cbd5e1;
  font-weight: 600;
}

.page-home,
.page-inner {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
  padding-top: 64px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-42%);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.rank-meta,
.review-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.rank-meta span,
.review-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 6px 10px;
  font-size: 13px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.detail-tags a,
.card-tags span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: var(--teal-strong);
  color: white;
  box-shadow: 0 16px 32px rgba(20, 184, 166, 0.22);
}

.btn-primary:hover {
  background: #0f9f92;
}

.btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
  color: #dbeafe;
}

.btn-ghost:hover {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(20, 184, 166, 0.12);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--teal);
}

.section,
.inner-hero,
.detail-layout,
.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 72px 0 0;
}

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

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

.section-heading h2,
.inner-hero h1,
.detail-title-block h1 {
  margin: 8px 0 0;
  color: white;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--teal);
  font-weight: 800;
}

.section-more:hover {
  color: #99f6e4;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  padding: 12px 16px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box-wide {
  margin-top: 28px;
  width: min(680px, 100%);
}

.grid {
  display: grid;
  gap: 24px;
}

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

.movie-card,
.review-card,
.category-tile,
.category-overview-card,
.ranking-row,
.related-sticky,
.detail-panel,
.player-card {
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.review-card:hover,
.ranking-row:hover,
.compact-card:hover,
.category-tile:hover,
.mosaic-item:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-wide {
  width: 360px;
  flex: 0 0 auto;
}

.movie-card-wide .poster-link {
  aspect-ratio: 16 / 9;
}

.poster-link img,
.review-card img,
.compact-card img,
.rank-thumb img,
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-link img,
.review-card:hover img,
.compact-card:hover img,
.ranking-row:hover .rank-thumb img,
.mosaic-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: white;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h2 a:hover,
.detail-tags a:hover {
  color: var(--teal);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-bottom: 12px;
}

.card-tags {
  margin-top: 0;
}

.horizontal-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.review-list {
  display: grid;
  gap: 22px;
}

.review-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.review-card img {
  height: 190px;
  border-radius: 14px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-head h3 {
  margin: 0;
  font-size: 22px;
}

.review-head span,
.mosaic-region {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.review-card p {
  margin: 0 0 16px;
  color: var(--muted-strong);
  line-height: 1.7;
}

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

.mosaic-item {
  position: relative;
  min-height: 230px;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 484px;
}

.mosaic-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.14));
}

.mosaic-region {
  position: absolute;
  right: 16px;
  top: 16px;
}

.mosaic-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}

.mosaic-info em,
.mosaic-info small {
  color: #cbd5e1;
  font-style: normal;
}

.mosaic-info strong {
  color: white;
  font-size: 22px;
  line-height: 1.2;
}

.mosaic-large .mosaic-info strong {
  font-size: 30px;
}

.category-grid,
.category-overview-list {
  display: grid;
  gap: 24px;
}

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

.category-tile,
.category-overview-card {
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile-head,
.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0;
  font-size: 24px;
}

.category-tile p,
.category-overview-card p,
.inner-hero p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile-head a {
  color: var(--teal);
  font-weight: 800;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.46);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.compact-card img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: white;
  margin-bottom: 5px;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 148px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  padding: 14px 18px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-number {
  color: var(--teal);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-action {
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--teal);
  padding: 10px 16px;
  font-weight: 800;
}

.rank-action:hover {
  background: var(--teal-strong);
  color: white;
}

.page-inner {
  padding-top: 96px;
}

.inner-hero {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 26px;
  padding: 44px;
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.inner-hero h1 {
  margin-bottom: 16px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.category-pills a {
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.15);
  font-weight: 700;
}

.category-pills a.is-active,
.category-pills a:hover {
  background: var(--teal-strong);
  color: white;
  border-color: var(--teal-strong);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 24px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.88fr);
  gap: 28px;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: black;
}

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.26), rgba(2, 6, 23, 0.66));
  color: white;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-strong);
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.45);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-title-block {
  margin: 28px 0;
}

.detail-title-block h1 {
  margin-top: 0;
  margin-bottom: 16px;
}

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

.detail-panel {
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 22px;
}

.detail-panel h2,
.related-sticky h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.detail-panel p {
  color: #cbd5e1;
  line-height: 1.9;
  margin: 0 0 14px;
}

.related-sticky {
  position: sticky;
  top: 92px;
  border-radius: 18px;
  padding: 20px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.86);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-size: 18px;
  margin-bottom: 14px;
}

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

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

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

.footer-links a {
  color: var(--muted);
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

[data-search-item].is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .related-sticky {
    position: static;
  }

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

  .review-card {
    grid-template-columns: 260px 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    transform: translateY(-35%);
  }

  .hero-actions,
  .section-heading,
  .category-overview-head,
  .review-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-4,
  .mosaic-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

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

  .review-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-row {
    grid-template-columns: 44px 96px 1fr;
  }

  .rank-action {
    display: none;
  }

  .inner-hero {
    padding: 30px 22px;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .section,
  .inner-hero,
  .detail-layout,
  .breadcrumb,
  .footer-grid,
  .copyright {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-meta span,
  .detail-meta span,
  .rank-meta span,
  .review-meta span,
  .card-meta span {
    font-size: 12px;
  }

  .movie-card-wide {
    width: 300px;
  }

  .ranking-row {
    grid-template-columns: 36px 82px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rank-number {
    font-size: 20px;
  }

  .rank-info h2 {
    font-size: 16px;
  }

  .rank-info p {
    display: none;
  }
}
