:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111c33;
  --bg-card: rgba(15, 23, 42, 0.82);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --glow: rgba(34, 211, 238, 0.24);
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.26), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.16), transparent 25%),
    linear-gradient(180deg, #0f172a 0%, #111827 48%, #0f172a 100%);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  box-shadow: 0 10px 30px var(--glow);
  font-size: 16px;
  transition: transform 0.25s ease;
}

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

.top-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.top-search input,
.mobile-search input,
.intro-search input,
.page-filter input,
.page-filter select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.top-search input {
  padding: 12px 16px;
}

.top-search button,
.mobile-search button,
.intro-search button,
.page-filter button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.top-search button {
  padding: 12px 18px;
}

.top-search button:hover,
.mobile-search button:hover,
.intro-search button:hover,
.page-filter button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #67e8f9;
  background: rgba(37, 99, 235, 0.2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.category-strip {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.category-strip a:hover {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(37, 99, 235, 0.18);
}

.mobile-menu {
  display: none;
}

main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.08)),
    linear-gradient(0deg, #0f172a 0%, transparent 32%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1280px) / 2 + 24px));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-kicker,
.eyebrow,
.intro-copy span,
.page-hero span,
.feature-panel span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-meta span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.hero-meta span {
  padding: 8px 12px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 18px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.ghost-btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.2);
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.content-section,
.category-overview-card,
.page-hero,
.detail-copy,
.breadcrumb {
  margin-top: 34px;
}

.content-section,
.category-overview-card,
.page-hero,
.feature-panel,
.detail-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58));
  box-shadow: var(--shadow);
}

.content-section,
.category-overview-card,
.page-hero,
.detail-copy {
  padding: 26px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: center;
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

.intro-copy h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.feature-panel h2 {
  margin: 10px 0;
  letter-spacing: -0.04em;
}

.intro-copy h2,
.page-hero h1,
.detail-copy h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.intro-copy p,
.section-heading p,
.page-hero p,
.feature-panel p,
.detail-copy p,
.footer-grid p,
.category-overview-head p {
  color: var(--muted);
  line-height: 1.8;
}

.intro-search,
.page-filter,
.mobile-search {
  display: flex;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.32);
  padding: 10px;
}

.intro-search input,
.page-filter input,
.page-filter select,
.mobile-search input {
  min-height: 46px;
  padding: 0 14px;
}

.intro-search button,
.page-filter button,
.mobile-search button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p,
.category-overview-head p {
  margin: 0;
}

.section-heading > a {
  flex: 0 0 auto;
  color: #67e8f9;
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 22px 58px rgba(2, 6, 23, 0.42);
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.04);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 7px 9px;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 56px;
  margin: 9px 0 12px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

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

.tag-row span {
  padding: 5px 8px;
  font-size: 11px;
}

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

.category-card {
  min-height: 156px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 211, 238, 0.05)),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: #67e8f9;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 24px;
}

.feature-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.78));
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item a:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.28);
}

.ranking-number {
  color: #67e8f9;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-copy {
  display: grid;
  gap: 8px;
}

.ranking-copy strong {
  font-size: 17px;
}

.ranking-copy em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.ranking-arrow {
  color: #67e8f9;
  font-size: 26px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
  gap: 28px;
  align-items: end;
}

.compact-page-hero {
  grid-template-columns: minmax(0, 1fr);
}

.page-filter {
  align-self: stretch;
  align-items: center;
}

.page-filter select {
  color: #ffffff;
}

.page-filter option {
  color: #0f172a;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  margin-top: 22px;
}

.player-panel,
.detail-side {
  min-width: 0;
}

.video-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
  padding: 0;
}

.player-cover.hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  filter: saturate(1.1);
}

.big-play {
  position: relative;
  z-index: 4;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.36);
  font-size: 32px;
  transition: transform 0.2s ease;
}

.player-cover:hover .big-play {
  transform: scale(1.08);
}

.detail-side {
  display: grid;
  gap: 16px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-meta-card {
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-meta-card span {
  color: #67e8f9;
  font-weight: 800;
}

.detail-meta-card strong {
  font-size: 26px;
}

.detail-meta-card em {
  color: #94a3b8;
  font-style: normal;
}

.detail-copy {
  max-width: 980px;
}

.detail-copy .one-line {
  color: #dbeafe;
  font-size: 20px;
}

.detail-tags {
  margin: 18px 0;
}

.detail-tags span {
  padding: 8px 12px;
  font-size: 13px;
}

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

.info-list div {
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
}

.info-list dt {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

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

.category-overview-card + .category-overview-card {
  margin-top: 24px;
}

.search-summary {
  color: #94a3b8;
}

.site-footer {
  margin-top: 48px;
  padding: 38px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.28);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 26px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.footer-links a {
  color: #cbd5e1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-menu {
    display: none;
    width: min(100%, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }

  body.menu-open .mobile-menu {
    display: grid;
    gap: 10px;
  }

  .mobile-link {
    padding: 12px 14px;
  }

  .hero {
    height: 520px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .intro-panel,
  .split-section,
  .page-hero,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }

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

@media (max-width: 680px) {
  .nav-shell,
  main,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1280px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .hero {
    height: 500px;
  }

  .hero-actions,
  .intro-search,
  .page-filter,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

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

  .content-section,
  .category-overview-card,
  .page-hero,
  .detail-copy {
    padding: 18px;
    border-radius: 18px;
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    min-height: 48px;
    font-size: 12px;
  }

  .ranking-item a {
    grid-template-columns: 40px 54px minmax(0, 1fr);
  }

  .ranking-arrow {
    display: none;
  }

  .ranking-item img {
    width: 54px;
    height: 72px;
  }

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

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

  .info-list {
    grid-template-columns: 1fr;
  }

  .big-play {
    width: 74px;
    height: 74px;
    font-size: 26px;
  }
}
