
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(96, 165, 250, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --orange: #f97316;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.25), transparent 32rem),
    radial-gradient(circle at 88% 0%, rgba(6, 182, 212, 0.18), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.24);
}

.logo-text {
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  color: #ffffff;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.large-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 11px 14px 11px 18px;
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  padding: 11px 18px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 14px 16px 18px;
  background: rgba(2, 6, 23, 0.98);
}

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
}

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

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(2, 6, 23, 0.08) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.32) 44%, rgba(2, 6, 23, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  padding-top: 170px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1,
.compact-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p,
.compact-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--soft);
}

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

.hero-meta span,
.detail-meta span,
.card-meta span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
}

.card-meta span {
  padding: 4px 9px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26);
}

.secondary-button {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.66);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
  background: rgba(37, 99, 235, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.quick-search-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.44);
}

.quick-search-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px 0;
}

.quick-search-inner h2,
.section-heading h2,
.side-panel h2,
.text-block h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.quick-search-inner p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.large-search input {
  width: 100%;
}

.page-stack {
  display: grid;
  gap: 64px;
  padding: 56px 0 72px;
}

.content-section,
.rank-band,
.filter-panel,
.movie-detail-card,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.content-section,
.rank-band,
.movie-detail-card,
.side-panel {
  padding: 28px;
}

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

.section-more {
  min-width: max-content;
  color: #67e8f9;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.38);
}

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

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

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

.type-badge,
.score-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.type-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(37, 99, 235, 0.82);
  font-size: 0.78rem;
}

.score-badge {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(249, 115, 22, 0.88);
  font-size: 0.78rem;
}

.play-badge {
  left: 50%;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: rgba(2, 6, 23, 0.56);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-content {
  padding: 16px;
}

.card-content h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.78rem;
}

.horizontal-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.movie-card-horizontal {
  display: flex;
  width: 470px;
  min-width: 470px;
  scroll-snap-align: start;
}

.horizontal-poster {
  width: 172px;
  min-width: 172px;
  aspect-ratio: auto;
}

.horizontal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rank-band {
  background: linear-gradient(100deg, rgba(30, 64, 175, 0.32), rgba(8, 47, 73, 0.34));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  transition: transform 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.88);
}

.rank-number,
.ranking-index {
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 1.35rem;
  font-weight: 900;
}

.rank-number {
  width: 54px;
  height: 54px;
}

.rank-item img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  color: #ffffff;
  line-height: 1.35;
}

.rank-text em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.page-hero {
  background:
    linear-gradient(110deg, rgba(30, 64, 175, 0.44), rgba(8, 47, 73, 0.32)),
    rgba(15, 23, 42, 0.56);
  border-bottom: 1px solid var(--line);
}

.compact-hero .container {
  padding: 64px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: #bfdbfe;
  font-size: 0.95rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: #0f172a;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.category-card img,
.category-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-gradient {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.2) 72%);
}

.category-content {
  position: absolute;
  inset: auto 22px 22px 22px;
}

.category-content strong,
.category-content em {
  display: block;
}

.category-content strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.category-content em {
  margin-top: 10px;
  color: #dbeafe;
  font-style: normal;
  line-height: 1.6;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  padding: 12px 14px;
}

.ranking-tabs {
  display: flex;
  gap: 12px;
}

.ranking-tab {
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.82);
  padding: 13px 22px;
  font-weight: 900;
}

.ranking-tab.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.hidden-panel {
  display: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 150px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, background 0.22s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.9);
}

.ranking-index {
  width: 58px;
  height: 58px;
}

.ranking-row img {
  width: 150px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main strong {
  font-size: 1.08rem;
}

.ranking-main em,
.ranking-meta {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.search-heading {
  margin-bottom: 24px;
  color: var(--soft);
  font-weight: 800;
}

.detail-wrap {
  padding: 34px 0 72px;
}

.detail-breadcrumb {
  margin-bottom: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.12));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.42);
  font-size: 2rem;
}

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

.movie-detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.detail-meta {
  margin-bottom: 22px;
}

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

.tag-chip {
  display: inline-flex;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.16);
  padding: 8px 13px;
  font-size: 0.92rem;
}

.text-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.text-block p {
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.review-block {
  border-top-color: rgba(96, 165, 250, 0.24);
}

.detail-side {
  position: sticky;
  top: 94px;
}

.side-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.side-list .movie-card-horizontal {
  width: 100%;
  min-width: 0;
}

.side-list .horizontal-poster {
  width: 128px;
  min-width: 128px;
}

.side-list .card-content p {
  -webkit-line-clamp: 1;
  min-height: 0;
}

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

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

.footer-brand {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.footer-brand p,
.footer-copy {
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 26px 0;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  margin: 0;
  font-size: 0.92rem;
}

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

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-control {
    display: none;
  }

  .quick-search-inner,
  .filter-panel,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .three-cols,
  .four-cols,
  .category-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .rank-band,
  .movie-detail-card,
  .side-panel {
    padding: 20px;
    border-radius: 18px;
  }

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

  .movie-card-horizontal {
    width: 330px;
    min-width: 330px;
  }

  .side-list .movie-card-horizontal {
    width: 100%;
  }

  .horizontal-poster,
  .side-list .horizontal-poster {
    width: 120px;
    min-width: 120px;
  }

  .rank-item {
    grid-template-columns: 46px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .rank-item img {
    width: 74px;
    height: 52px;
  }

  .ranking-row img {
    width: 100%;
    height: 160px;
  }

  .ranking-meta {
    text-align: left;
  }
}

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

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

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
