:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.84);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --cyan-dark: #0891b2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

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.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 38rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.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, 41, 59, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.26);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #67e8f9;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
}

.top-search input,
.filter-panel input,
.filter-panel select {
  color: var(--text);
  border: 1px solid var(--line);
  outline: none;
  background: rgba(15, 23, 42, 0.86);
}

.top-search input {
  width: 220px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
}

.top-search button,
.primary-button,
.ghost-button,
.text-button,
.category-more {
  border: 0;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.primary-button {
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.22);
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 10px;
}

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

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

.hero {
  position: relative;
}

.hero > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 610px;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.68) 43%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.75) 0%, transparent 38%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(32px, calc((100vw - 1180px) / 2));
  width: min(620px, calc(100% - 64px));
  transform: translateY(-50%);
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.78);
  border: 1px solid rgba(103, 232, 249, 0.35);
  font-weight: 750;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 30px;
  color: #cbd5e1;
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.13);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.ghost-button {
  color: #ecfeff;
  padding: 10px 18px;
  border: 1px solid rgba(103, 232, 249, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(34, 211, 238, 0.34);
  transform: translateY(-50%) scale(1.06);
}

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

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

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

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

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

.section-block,
.page-shell {
  padding: 64px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-content h1,
.detail-content h2,
.detail-side h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-title p,
.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a,
.text-button,
.category-more {
  color: #67e8f9;
}

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

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

.listing-grid {
  align-items: stretch;
}

.movie-card,
.horizontal-card,
.category-card,
.overview-card,
.detail-content,
.detail-side {
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 30px 80px rgba(8, 145, 178, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #020617;
}

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

.poster-link img,
.horizontal-poster img,
.overview-cover img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 62%);
}

.poster-play,
.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge,
.list-rank {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 12px;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

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

.movie-card-body p,
.horizontal-body p,
.detail-content p {
  color: #cbd5e1;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 10px 0 12px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  color: #94a3b8;
  font-size: 12px;
}

.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.tag-cloud a {
  padding: 4px 8px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.16);
  font-size: 12px;
}

.ranking-grid,
.ranking-list,
.side-list {
  display: grid;
  gap: 18px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  overflow: hidden;
  border-radius: 18px;
  padding: 12px;
}

.horizontal-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #020617;
}

.horizontal-body {
  min-width: 0;
}

.horizontal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.horizontal-title-row a {
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.list-rank {
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
}

.horizontal-body p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-band {
  padding: 64px 0;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.72), rgba(8, 47, 73, 0.62));
  border-block: 1px solid var(--line);
}

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

.category-card {
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.46);
}

.category-card h3,
.overview-card h2 {
  margin: 0 0 8px;
}

.category-card p,
.overview-card p {
  color: #cbd5e1;
  font-size: 14px;
}

.category-samples,
.overview-links {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.category-samples a,
.overview-links a {
  overflow: hidden;
  color: #dbeafe;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-title {
  max-width: 840px;
  margin-bottom: 30px;
}

.page-title span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.24);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  border-radius: var(--radius);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  min-height: 230px;
  background: #020617;
}

.overview-cover img {
  min-height: 230px;
}

.overview-body {
  padding: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 18px;
  color: #93c5fd;
}

.detail-shell {
  padding-bottom: 64px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.player-main {
  min-width: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  z-index: 2;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.15));
}

.player-cover .play-ring {
  z-index: 3;
  width: 84px;
  height: 84px;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.86), rgba(59, 130, 246, 0.82));
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.detail-content,
.detail-side {
  margin-top: 22px;
  border-radius: 24px;
  padding: 26px;
}

.detail-content h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 12px;
}

.detail-content h2 {
  margin-top: 28px;
  font-size: 26px;
}

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

.lead-text {
  font-size: 18px;
}

.detail-side {
  position: sticky;
  top: 100px;
  margin-top: 0;
}

.detail-side .horizontal-card {
  grid-template-columns: 112px 1fr;
  box-shadow: none;
  background: rgba(2, 6, 23, 0.28);
}

.related-block {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.footer-brand {
  color: #67e8f9;
  font-size: 22px;
  font-weight: 850;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 20px;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  color: #64748b;
  font-size: 14px;
}

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

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

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

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

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero-stage,
  .hero-slide img {
    min-height: 560px;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

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

  .featured-grid,
  .ranking-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .site-header-inner {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

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

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

  .movie-title {
    min-height: 42px;
    font-size: 15px;
  }

  .movie-card-body p {
    display: none;
  }

  .horizontal-card {
    grid-template-columns: 104px 1fr;
    gap: 12px;
  }

  .horizontal-body p {
    -webkit-line-clamp: 1;
  }

  .category-band,
  .section-block,
  .page-shell {
    padding: 42px 0;
  }

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