:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(34, 211, 238, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(37, 99, 235, 0.20), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

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

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.22);
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.07) rotate(-2deg);
}

.logo-triangle {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid white;
  margin-left: 3px;
}

.logo-text {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--subtle);
  font-size: 0.94rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ecfeff;
  background: rgba(34, 211, 238, 0.13);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-nav .nav-link {
  width: 100%;
  border-radius: 0;
  padding: 15px 24px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.72;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 80px;
  background: rgba(34, 211, 238, 0.22);
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: 30px;
  background: rgba(37, 99, 235, 0.22);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: calc(100vh - 72px);
  align-items: center;
  padding: 56px 0;
}

.hero-slide.is-active {
  display: flex;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.15);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.74) 44%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.28) 0%, #020617 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 42px;
  align-items: center;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(14, 116, 144, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--subtle);
  background: rgba(15, 23, 42, 0.66);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #ecfeff;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.28);
}

.btn-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: #ecfeff;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 600px);
  margin-top: 30px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 23, 0.62);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  border-color: transparent;
  background: transparent;
}

.hero-search button {
  border: 0;
}

.hero-card {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-5deg);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

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

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hero-card-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.main-section {
  padding: 64px 0;
}

.main-section + .main-section {
  padding-top: 10px;
}

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

.section-kicker {
  color: #67e8f9;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.12;
}

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

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

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

.movie-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.7));
}

.movie-grid.large .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.movie-year,
.movie-type,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ecfeff;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(10px);
}

.movie-year {
  left: 10px;
}

.movie-type {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--amber), #ef4444);
}

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

.movie-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-title a:hover {
  color: #67e8f9;
}

.movie-line {
  margin: 9px 0 0;
  min-height: 3.2em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.meta-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.18);
  font-size: 0.76rem;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 40%),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.34);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.category-card span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 70px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.ranking-number {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  color: #67e8f9;
}

.ranking-thumb {
  width: 78px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.7);
}

.ranking-info h2,
.ranking-info h3 {
  margin: 0;
  font-size: 1.04rem;
}

.ranking-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.ranking-score {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.13);
}

.page-hero {
  padding: 54px 0 30px;
}

.page-card {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.14), transparent 38%),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.page-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-card p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--subtle);
  line-height: 1.85;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin: 26px 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
}

.filter-input,
.filter-select {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
}

.detail-hero {
  padding: 42px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
}

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

.detail-info {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 1.06rem;
  line-height: 1.86;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.video-section {
  padding: 24px 0 44px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 90px rgba(8, 145, 178, 0.16);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  color: #ecfeff;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.54) 44%, rgba(2, 6, 23, 0.72) 100%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button-circle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 54px rgba(34, 211, 238, 0.24);
}

.play-button-circle::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid white;
  margin-left: 5px;
}

.play-overlay span:last-child {
  font-size: 1.18rem;
  font-weight: 800;
}

.player-state {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.72);
  font-size: 0.82rem;
  pointer-events: none;
}

.video-shell.is-playing .player-state {
  opacity: 0;
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding-bottom: 40px;
}

.text-panel {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.text-panel p {
  margin: 0;
  color: var(--subtle);
  line-height: 1.95;
}

.text-panel + .text-panel {
  margin-top: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-text,
.footer-list a,
.copyright {
  color: var(--muted);
  line-height: 1.75;
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a:hover {
  color: #67e8f9;
}

.copyright {
  padding: 18px 0 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

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

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

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

  .hero-card,
  .hero-card img {
    min-height: 520px;
  }
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-layout,
  .detail-layout,
  .content-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
    min-height: auto;
  }

  .hero-card img {
    min-height: 420px;
  }

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

  .ranking-item {
    grid-template-columns: 52px 64px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

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

  .logo-text {
    font-size: 1.02rem;
  }

  .hero-slide {
    padding: 34px 0 64px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-search {
    display: grid;
  }

  .hero-search input,
  .hero-search .btn {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.large,
  .category-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-line {
    min-height: auto;
  }

  .page-card,
  .detail-info,
  .text-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .ranking-item {
    gap: 10px;
    padding: 10px;
  }

  .ranking-thumb {
    width: 64px;
    height: 86px;
  }
}
