:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(56, 189, 248, 0.22);
  --line-soft: rgba(30, 64, 175, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --purple: #a855f7;
  --gold: #f59e0b;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow: 0 22px 70px rgba(8, 47, 73, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.22), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.2), transparent 28%),
    linear-gradient(180deg, #020617 0%, #082f49 50%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.84);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.32);
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

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

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan);
}

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

.quick-search input {
  width: 170px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 8px 6px 8px 12px;
}

.quick-search button,
.primary-btn,
.ghost-btn,
.outline-link,
.search-panel button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.28);
}

.quick-search button {
  padding: 8px 15px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

.primary-btn:hover,
.quick-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.38);
}

.ghost-btn,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.45);
}

.ghost-btn:hover,
.outline-link:hover {
  border-color: rgba(34, 211, 238, 0.65);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  border: 0;
  color: var(--text);
  background: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.3) 100%),
    linear-gradient(0deg, #020617 0%, transparent 48%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(760px, 100%);
  padding-top: 68px;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.card-meta span {
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.55);
  border-radius: 999px;
}

.hero-tags span {
  padding: 7px 12px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

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

.hero-dot {
  width: 38px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.7);
}

.section-block {
  padding: 70px 0;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.55), rgba(15, 23, 42, 0.54));
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-head h2,
.rank-panel h2,
.page-hero h1,
.detail-card h1,
.sticky-box h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.intro-strip p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

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

.section-head a {
  color: var(--cyan);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 28px 80px rgba(34, 211, 238, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.movie-card:hover .card-poster img,
.category-tile:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(12px);
}

.year-badge {
  right: 14px;
  padding: 6px 10px;
  font-size: 13px;
}

.rank-badge {
  left: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #ef4444);
}

.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.88);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.card-meta span {
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-body h2 {
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  min-height: 54px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h2 a:hover {
  color: var(--cyan);
}

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

.tag-row span {
  padding: 4px 9px;
  color: #cbd5e1;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.category-panel {
  padding: 40px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.38), rgba(15, 23, 42, 0.18));
}

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

.category-tile,
.category-card a {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--panel);
}

.category-tile img,
.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.5s ease;
}

.category-tile span,
.category-card a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(8, 47, 73, 0.16));
}

.category-tile strong,
.category-tile em,
.category-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-tile strong {
  bottom: 74px;
  font-size: 24px;
}

.category-tile em {
  bottom: 20px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.category-card div {
  bottom: 22px;
}

.category-card p {
  color: var(--cyan);
  font-weight: 900;
}

.category-card h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.category-card span {
  color: var(--muted);
  line-height: 1.7;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
}

.rank-panel,
.detail-card,
.sticky-box,
.search-panel,
.filter-bar {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rank-panel {
  align-self: start;
  padding: 26px;
  position: sticky;
  top: 100px;
}

.rank-list {
  display: grid;
  gap: 11px;
  margin: 22px 0;
}

.rank-list a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.58);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
  transform: translateX(4px);
  background: rgba(8, 47, 73, 0.58);
}

.rank-list b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-list em {
  color: var(--muted-2);
  font-size: 13px;
  font-style: normal;
}

.wide {
  width: 100%;
}

.page-main {
  padding-top: 38px;
}

.page-hero {
  padding: 52px;
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.68), rgba(15, 23, 42, 0.5)),
    radial-gradient(circle at 80% 15%, rgba(34, 211, 238, 0.18), transparent 32%);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 8px;
}

.filter-bar,
.search-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
}

.filter-bar input,
.search-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-soft);
  outline: 0;
  color: var(--text);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.55);
}

.filter-bar input:focus,
.search-panel input:focus,
.quick-search input:focus {
  border-color: var(--cyan);
}

.filter-bar span {
  color: var(--muted);
}

.search-panel button {
  padding: 13px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  padding-bottom: 22px;
}

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

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

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

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.34);
}

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

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-tags span {
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 18px 0 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.detail-meta a {
  color: var(--cyan);
}

.quote-box {
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  color: #a5f3fc;
  line-height: 1.85;
  background: linear-gradient(90deg, rgba(8, 47, 73, 0.58), transparent);
}

.detail-card section {
  padding-top: 18px;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
}

.detail-card section + section {
  margin-top: 20px;
}

.detail-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.95;
}

.detail-side {
  min-width: 0;
}

.sticky-box {
  position: sticky;
  top: 100px;
  padding: 20px;
}

.sticky-box h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 13px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(30, 64, 175, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.52);
}

.related-item img {
  width: 118px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item em {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 70px;
  padding: 54px 0 26px;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  gap: 34px;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

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

.footer-bottom {
  margin-top: 38px;
  text-align: center;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

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

  .rank-panel,
  .sticky-box {
    position: static;
  }

  .quick-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: flex;
  }

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

  .mobile-link {
    padding: 12px 0;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
  }

  .header-inner {
    min-height: 68px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .intro-strip,
  .section-head,
  .filter-bar,
  .search-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-hero,
  .category-panel {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy {
    padding-top: 32px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }

  .featured-grid,
  .listing-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 46px 0;
  }

  .detail-card {
    padding: 20px;
  }

  .related-item {
    grid-template-columns: 102px minmax(0, 1fr);
  }

  .related-item img {
    width: 102px;
    height: 70px;
  }
}
