:root {
  --page-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.82);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --yellow: #facc15;
  --red: #f43f5e;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 5%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.16), transparent 36rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.32);
}

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

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

.logo-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.22);
}

.logo-icon {
  width: 25px;
  height: 25px;
}

.logo-text {
  display: grid;
  line-height: 1.2;
}

.logo-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  color: var(--muted-strong);
  font-size: 12px;
}

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

.nav a {
  position: relative;
  color: #dbeafe;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--cyan);
  transition: width 0.24s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #ffffff;
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.72);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 12px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav a {
  border-radius: 14px;
  padding: 12px 14px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.5);
}

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

.hero-slide {
  display: none;
  min-height: 610px;
  position: relative;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

.hero-bg::before,
.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-bg::before {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.3) 78%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.94));
}

.hero-bg::after {
  background: radial-gradient(circle at 70% 28%, rgba(34, 211, 238, 0.22), transparent 25rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  min-height: 610px;
  padding-block: 72px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(8, 47, 73, 0.55);
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 1.5vw, 20px);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 650;
}

.badge.cyan {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(14, 116, 144, 0.32);
  color: #cffafe;
}

.badge.yellow {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(113, 63, 18, 0.35);
  color: #fef3c7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.button.primary {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(59, 130, 246, 0.32);
}

.button.ghost {
  border-color: rgba(203, 213, 225, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
}

.hero-card {
  position: relative;
  border: 1px solid rgba(203, 213, 225, 0.22);
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.3));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.85);
}

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

.hero-card-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
  padding: 0;
}

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

.section {
  padding-block: 58px;
}

.section.compact {
  padding-block: 36px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.035em;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(30, 41, 59, 0.92);
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.88);
}

.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 {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.9) 100%);
}

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  border-radius: 12px;
  padding: 4px 9px;
  background: linear-gradient(135deg, var(--red), #f97316);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

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

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

.card-meta,
.card-one {
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  margin-top: 5px;
}

.card-one {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card {
  min-height: 142px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.18), transparent 12rem),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.24), transparent 12rem),
    rgba(30, 41, 59, 0.9);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-panel {
  position: sticky;
  top: 102px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 40px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  background: rgba(30, 41, 59, 0.58);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(51, 65, 85, 0.72);
}

.rank-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(14, 116, 144, 0.3);
  color: #a5f3fc;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.8);
}

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

.rank-title {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 58px 0 22px;
}

.page-title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.page-desc {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.search-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.search-input,
.search-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  padding: 13px 15px;
  outline: none;
  background: rgba(2, 6, 23, 0.45);
  color: #ffffff;
}

.search-input:focus,
.search-select:focus {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.search-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 13px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-weight: 750;
}

.pagination a:hover,
.pagination span.is-current {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(14, 116, 144, 0.34);
  color: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.08);
  opacity: 0.32;
}

.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.75)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35), #020617);
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow);
}

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

.detail-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.detail-one {
  max-width: 900px;
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  padding-block: 44px;
}

.content-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 18px;
  color: #dbeafe;
}

.player-shell {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.74)),
    rgba(2, 6, 23, 0.18);
  color: #ffffff;
  z-index: 4;
}

.play-overlay.is-hidden {
  display: none;
}

.play-button-large {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 56px rgba(34, 211, 238, 0.36);
  transition: transform 0.22s ease;
}

.play-overlay:hover .play-button-large {
  transform: scale(1.08);
}

.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 16px 18px;
  color: #e2e8f0;
}

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

.related-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  background: rgba(30, 41, 59, 0.55);
  transition: background 0.22s ease, transform 0.22s ease;
}

.related-item:hover {
  transform: translateX(3px);
  background: rgba(51, 65, 85, 0.72);
}

.related-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.9);
}

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

.related-title {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-meta {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.95));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 30px;
  padding-block: 42px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.footer-text,
.footer-links a,
.footer-note {
  color: var(--muted);
  font-size: 14px;
}

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

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

.footer-note {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 18px 0 26px;
  text-align: center;
}

.hide-card {
  display: none;
}

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

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

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .header-inner {
    height: 68px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-block: 54px 82px;
  }

  .hero-card {
    max-width: 360px;
  }

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

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

  .search-row {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .section-header {
    display: grid;
    align-items: start;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-title,
  .detail-title,
  .page-title {
    letter-spacing: -0.035em;
  }

  .content-card,
  .side-card {
    padding: 18px;
  }

  .rank-item {
    grid-template-columns: 34px 60px minmax(0, 1fr);
  }
}
