:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --strong: #ffffff;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --rose: #fb7185;
  --amber: #fbbf24;
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.48);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(251, 113, 133, 0.16), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), #2563eb 52%, #7c3aed);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.24);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-logo {
  color: var(--strong);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.main-nav a {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: #64748b;
}

.header-search button,
.primary-button,
.ghost-button,
.section-more,
.mini-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.primary-button,
.mini-button {
  color: #00111a;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 48%, #38bdf8);
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.24);
}

.header-search button {
  padding: 8px 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-button {
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.header-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.mini-button:hover {
  transform: translateY(-2px);
}

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

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 12px;
  color: #cbd5e1;
  border-radius: 12px;
}

.mobile-panel a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-stage {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0 132px;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-backdrop {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: -2;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.94) 100%),
    radial-gradient(circle at 68% 44%, rgba(34, 211, 238, 0.24), transparent 22rem);
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.hero p,
.detail-copy p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 750;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.18);
}

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

.hero-poster {
  display: block;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 58%, rgba(2, 6, 23, 0.74));
}

.hero-poster img {
  width: 100%;
  height: 100%;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 72px;
  padding: 8px;
  color: #cbd5e1;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.hero-thumb.is-active {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.62);
  background: rgba(8, 145, 178, 0.25);
}

.hero-thumb img {
  width: 42px;
  height: 56px;
  border-radius: 12px;
}

.hero-thumb span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-flow {
  display: grid;
  gap: 56px;
  padding: 58px 0 74px;
}

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

.category-strip a {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.64));
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-strip a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.54);
}

.category-strip strong {
  color: #ffffff;
  font-size: 18px;
}

.category-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.content-section {
  display: grid;
  gap: 24px;
}

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

.section-heading h2,
.article-card h2,
.side-card h2,
.site-footer h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 0 18px;
  color: #e0f2fe;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(8, 145, 178, 0.16);
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 26px 70px rgba(8, 145, 178, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.poster-link img {
  width: 100%;
  height: 100%;
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.86));
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #00111a;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.26);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.movie-meta-line {
  color: #94a3b8;
  font-size: 12px;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.movie-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 44px;
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 74px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 28%, rgba(34, 211, 238, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
}

.compact-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
}

.prominent-filter {
  margin-top: -24px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  color: #e2e8f0;
  outline: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.64);
  padding: 0 14px;
}

.filter-panel select {
  color: #cbd5e1;
}

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

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

.rank-num {
  color: var(--cyan);
  font-size: 26px;
  font-weight: 900;
}

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

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

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

.rank-info p {
  margin: 0 0 10px;
  color: #94a3b8;
  line-height: 1.75;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 38px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 76px;
  isolation: isolate;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.98)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.36), #020617 100%);
}

.detail-head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.back-link {
  grid-column: 1 / -1;
  width: fit-content;
  color: var(--cyan);
  font-weight: 800;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: #0f172a;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.detail-poster img {
  width: 100%;
  height: 100%;
}

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

.detail-tags {
  margin: 18px 0 26px;
}

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

.main-detail-column,
.side-detail-column {
  display: grid;
  gap: 20px;
  align-content: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.52);
}

.player-shell video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  background: #000000;
}

.big-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.7));
  cursor: pointer;
}

.big-play span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: #00111a;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.34);
}

.big-play strong {
  font-size: 20px;
}

.player-shell.is-playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.36);
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.72);
}

.player-shell.has-error .player-error {
  display: block;
}

.article-card,
.side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
}

.article-card p {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.95;
}

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

.side-card dt {
  color: #64748b;
}

.side-card dd {
  margin: 0;
  color: #e2e8f0;
}

.related-section {
  padding-bottom: 72px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.66);
}

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

.site-footer p {
  max-width: 500px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 17px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  color: #94a3b8;
  line-height: 2.1;
}

.site-footer a:hover {
  color: var(--cyan);
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

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

@media (max-width: 820px) {
  .hero,
  .hero-stage {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 82px 0 170px;
  }

  .hero-poster {
    width: min(250px, 72vw);
  }

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

  .hero-thumb {
    height: 58px;
  }

  .hero-thumb img {
    display: none;
  }

  .section-heading,
  .rank-row,
  .detail-head,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .detail-poster {
    width: min(260px, 78vw);
  }

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

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

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

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

  .brand-copy em {
    display: none;
  }

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

  .hero p,
  .detail-copy p,
  .page-hero p {
    font-size: 15px;
  }

  .hero-controls,
  .category-strip,
  .movie-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    gap: 12px;
  }

  .rank-cover {
    width: 86px;
  }

  .player-shell,
  .player-shell video {
    min-height: 240px;
  }
}
