:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --orange: #fb923c;
  --purple: #c084fc;
  --green: #34d399;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}

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

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.22);
  color: #fff;
  font-weight: 900;
}

.logo-title {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.logo-subtitle {
  display: block;
  margin-top: -2px;
  font-size: 12px;
  color: rgba(34, 211, 238, 0.86);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-weight: 650;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--cyan-light);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-carousel {
  position: relative;
  min-height: 690px;
  height: 85vh;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.56) 48%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.48) 48%, rgba(2, 6, 23, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 690px;
  height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 86px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  backdrop-filter: blur(14px);
}

.pill-cyan {
  background: rgba(6, 182, 212, 0.95);
  border-color: rgba(34, 211, 238, 0.36);
  color: #fff;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #fff;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.hero-desc {
  margin: 0 0 26px;
  max-width: 760px;
  color: #cbd5e1;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  background: var(--cyan-light);
  transform: translateY(-2px) scale(1.02);
}

.btn-soft {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  backdrop-filter: blur(14px);
}

.btn-soft:hover {
  border-color: rgba(34, 211, 238, 0.6);
  color: #fff;
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.section {
  padding: 72px 0 0;
}

.section:first-of-type {
  padding-top: 64px;
}

.section-panel {
  margin-top: 72px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.78));
}

.section-panel-cyan {
  background: linear-gradient(110deg, rgba(8, 145, 178, 0.26), rgba(30, 41, 59, 0.56), rgba(37, 99, 235, 0.2));
  border-color: rgba(34, 211, 238, 0.22);
}

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

.section-title {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-lead {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.more-link {
  flex: 0 0 auto;
  color: var(--cyan-light);
  font-weight: 800;
}

.more-link:hover {
  color: #67e8f9;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 24px 70px rgba(6, 182, 212, 0.13);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.card-cover-tall {
  aspect-ratio: 2 / 3;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.08) 54%, transparent);
}

.card-badges {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-badge {
  padding: 4px 8px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.card-badge-cyan {
  background: rgba(6, 182, 212, 0.9);
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.92);
  color: #fff;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.movie-card:hover .card-play {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--cyan-light);
}

.card-desc {
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 166px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.26), transparent 12rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.82));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
}

.category-tile p {
  margin: 0 0 18px;
  color: #a8b3c7;
}

.page-hero {
  padding: 78px 0 38px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.48);
  background:
    radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.54), rgba(2, 6, 23, 0));
}

.page-title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-desc {
  max-width: 820px;
  margin: 16px 0 0;
  color: #a8b3c7;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 190px 160px;
  gap: 14px;
  margin: 34px 0 30px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(14px);
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.empty-state {
  display: none;
  margin: 26px 0;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.62);
}

.empty-state.show {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

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

.rank-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(37, 99, 235, 0.95));
  font-weight: 900;
}

.rank-thumb {
  width: 120px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: #cbd5e1;
}

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

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

.player-block {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.22), transparent 14rem),
    rgba(2, 6, 23, 0.34);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.96);
  color: #fff;
  box-shadow: 0 24px 70px rgba(6, 182, 212, 0.36);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

.big-play:hover {
  transform: scale(1.08);
  background: var(--cyan-light);
}

.big-play .play-triangle {
  border-top-width: 15px;
  border-bottom-width: 15px;
  border-left-width: 22px;
}

.detail-title {
  margin: 26px 0 12px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.content-panel {
  margin-top: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.62);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
}

.content-panel p {
  margin: 0 0 18px;
  color: #cbd5e1;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
}

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

.poster-card-body {
  padding: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
  color: #94a3b8;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  max-width: 620px;
}

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

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

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

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

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

  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-block;
  }

  .hero-carousel,
  .hero-content {
    height: auto;
    min-height: 640px;
  }

  .hero-content {
    padding-top: 170px;
    padding-bottom: 90px;
    align-items: flex-end;
  }

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

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

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

  .rank-item {
    grid-template-columns: 56px 92px 1fr;
  }

  .rank-action {
    display: none;
  }

  .rank-thumb {
    width: 92px;
    height: 62px;
  }

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

@media (max-width: 540px) {
  .header-inner,
  .container {
    width: min(100% - 24px, 1280px);
  }

  .logo-subtitle {
    display: none;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-cover {
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    grid-template-columns: 48px 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
