* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-950: #020617;
  --bg-900: #0f172a;
  --bg-850: #111827;
  --bg-800: #1e293b;
  --bg-700: #334155;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--bg-950), var(--bg-900) 48%, var(--bg-950));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.36);
}

.logo-text {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: rgba(30, 41, 59, 0.75);
}

.nav-link.compact {
  font-size: 0.88rem;
  color: #94a3b8;
}

.top-search,
.mobile-search,
.search-large {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  overflow: hidden;
}

.top-search input,
.mobile-search input,
.search-large input,
.local-filter {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.top-search input {
  width: 210px;
  padding: 10px 12px;
}

.top-search button,
.mobile-search button,
.search-large button {
  border: 0;
  color: #06111a;
  background: var(--cyan);
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 8px;
  flex-direction: column;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
}

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

.mobile-search input {
  padding: 10px 12px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08);
}

.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-fade.vertical {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.88) 28%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-fade.horizontal {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18) 58%, rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2 + 16px));
  bottom: 72px;
  width: min(660px, calc(100% - 40px));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-summary {
  margin: 20px 0 22px;
  color: #cbd5e1;
  font-size: 1.12rem;
  line-height: 1.75;
}

.tag-row,
.detail-tags,
.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row span,
.detail-tags span,
.link-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.16);
  font-size: 0.9rem;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #06111a;
  background: var(--cyan);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 20px;
  color: #e2e8f0;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
}

.ghost-btn.small {
  min-height: 40px;
  padding: 0 14px;
}

.text-link {
  color: var(--cyan);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.32);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--cyan);
}

.section-wrap,
.page-hero,
.breadcrumbs,
.detail-layout,
.player-section {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-wrap {
  margin-top: 64px;
}

.intro-panel,
.soft-panel,
.filter-panel,
.detail-main-card,
.detail-side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.intro-panel h2,
.section-head h2,
.detail-main-card h1,
.detail-main-card h2,
.detail-side-card h2 {
  margin: 0;
  color: #fff;
}

.intro-panel p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 0;
}

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

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

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

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

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

.poster-grid {
  display: grid;
  gap: 18px;
}

.poster-grid.five-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.poster-grid.six-cols {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
}

.card-link,
.horizontal-link,
.category-card a,
.rank-item a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card-link:hover,
.horizontal-link:hover,
.category-card a:hover,
.rank-item a:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.55);
}

.card-large .card-link {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
}

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

.card-link:hover img,
.category-card a:hover img,
.horizontal-link:hover img {
  transform: scale(1.08);
}

.image-shade,
.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.26) 62%, rgba(2, 6, 23, 0.08));
}

.play-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06111a;
  background: rgba(34, 211, 238, 0.92);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.card-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
}

.card-overlay h3,
.poster-info h3,
.horizontal-info h3 {
  margin: 0;
  color: #f8fafc;
  transition: color 0.2s ease;
}

.card-link:hover h3,
.horizontal-link:hover h3 {
  color: var(--cyan);
}

.card-overlay p,
.poster-info p,
.horizontal-info p {
  color: var(--muted);
  line-height: 1.65;
}

.card-overlay p {
  margin: 8px 0 12px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.78);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

.poster-info {
  padding: 14px;
}

.poster-info h3 {
  min-height: 2.9em;
  font-size: 1rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-info p {
  min-height: 3.3em;
  margin: 8px 0 12px;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.horizontal-link {
  display: flex;
  gap: 16px;
  padding: 10px;
  border-radius: 16px;
}

.horizontal-thumb {
  width: 176px;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
}

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

.horizontal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
}

.horizontal-info h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-info p {
  margin: 6px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.soft-panel,
.filter-panel {
  padding: 28px;
}

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

.category-card a {
  min-height: 180px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card div {
  position: relative;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: 54px 80px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 10px 14px;
}

.rank-number {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 900;
}

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

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: #fff;
  margin-bottom: 8px;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.rank-play {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06111a;
  border-radius: 999px;
  background: var(--cyan);
}

.page-hero {
  margin-top: 42px;
  padding: 54px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(30, 41, 59, 0.48)),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1.08rem;
}

.compact-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.filter-row {
  display: flex;
  gap: 12px;
}

.local-filter {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.38);
}

.search-large {
  width: min(760px, 100%);
}

.search-large input {
  min-height: 54px;
  padding: 0 16px;
  font-size: 1.05rem;
}

.search-large button {
  min-height: 54px;
  padding: 0 24px;
}

.search-status {
  margin: 14px 0 0;
  color: var(--muted);
}

.empty-state {
  display: none;
  margin-top: 26px;
  padding: 38px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
}

.empty-state.is-visible {
  display: block;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.player-section {
  margin-top: 24px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.22));
  cursor: pointer;
  z-index: 2;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.big-play {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06111a;
  background: var(--cyan);
  font-size: 2.4rem;
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.42);
}

.player-overlay strong {
  font-size: 1.2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 28px;
  margin-top: 32px;
}

.detail-main-card,
.detail-side-card {
  padding: 28px;
}

.detail-main-card h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

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

.detail-lead {
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1.85;
  margin: 0 0 28px;
}

.detail-main-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

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

.detail-tags {
  margin-top: 28px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 22px;
}

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

.detail-side-card .horizontal-thumb {
  width: 116px;
}

.detail-side-card .horizontal-info p {
  display: none;
}

.related-section {
  margin-top: 46px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 30px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  text-align: center;
}

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

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

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

@media (max-width: 900px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .nav-wrap {
    justify-content: space-between;
  }

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

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    left: 18px;
    bottom: 66px;
  }

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

  .large-grid,
  .large-grid.two-cols,
  .category-grid,
  .category-grid.expanded,
  .rank-grid,
  .rank-grid.two-cols,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  .section-wrap,
  .page-hero,
  .breadcrumbs,
  .detail-layout,
  .player-section,
  .footer-inner,
  .copyright,
  .nav-wrap,
  .mobile-nav {
    width: min(100% - 22px, 1280px);
  }

  .poster-grid.six-cols,
  .poster-grid.five-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section-wrap {
    margin-top: 44px;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .card-overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .horizontal-link,
  .rank-item a {
    grid-template-columns: none;
  }

  .horizontal-link {
    gap: 12px;
  }

  .horizontal-thumb {
    width: 118px;
  }

  .rank-item a {
    display: flex;
  }

  .rank-item img {
    width: 62px;
    height: 72px;
  }

  .rank-play {
    display: none;
  }

  .detail-main-card,
  .detail-side-card,
  .soft-panel,
  .filter-panel,
  .intro-panel {
    padding: 20px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .big-play {
    width: 64px;
    height: 64px;
    font-size: 1.9rem;
  }
}
