:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --amber: #f59e0b;
  --card: #ffffff;
  --card-text: #111827;
  --card-muted: #64748b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--text);
  background: linear-gradient(90deg, #020617, #0f172a 46%, #111827);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 600;
}

.desktop-nav a,
.nav-more button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-more button:hover {
  color: #ffffff;
}

.nav-more {
  position: relative;
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 180px;
  padding: 10px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.nav-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-menu a:hover {
  background: rgba(96, 165, 250, 0.14);
}

.nav-more:hover .nav-menu {
  display: block;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px;
  background: #0f172a;
}

.mobile-nav a {
  padding: 12px;
  color: #cbd5e1;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--text);
  background: #020617;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.2);
  transform: scale(1.05);
  opacity: 0.55;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.48), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.1fr 360px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 96px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue-light);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.button-primary:hover {
  background: #1d4ed8;
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.full {
  width: 100%;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot,
.hero-arrows button {
  border: 0;
  cursor: pointer;
}

.hero-dot {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
  background: #ffffff;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrows button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 26px;
}

.feature-strip {
  margin-top: -54px;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 118px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.feature-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.feature-card span {
  display: block;
  color: #cbd5e1;
  margin-top: 10px;
}

.feature-link {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.section-block {
  padding: 72px 0;
}

.section-dark {
  color: var(--text);
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

.section-head h2,
.panel-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head a,
.text-link {
  color: var(--blue);
  font-weight: 800;
}

.section-dark .section-head a {
  color: #93c5fd;
}

.compact-head {
  margin-bottom: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

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

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.0);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  background: rgba(2, 6, 23, 0.36);
}

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

.movie-card h3 {
  min-height: 2.8em;
  margin: 0 0 6px;
  color: var(--card-text);
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--blue);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--card-muted);
  font-size: 13px;
}

.movie-desc {
  margin-top: 8px;
  min-height: 3.8em;
}

.movie-card .tag-row {
  margin-top: 12px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.86));
}

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

.category-card div {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.category-card strong {
  display: block;
  font-size: 22px;
}

.category-card span {
  display: block;
  color: #cbd5e1;
  margin-top: 6px;
  font-size: 14px;
}

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

.rank-panel,
.content-panel,
.watch-info,
.search-page-panel,
.filter-panel,
.rank-wide {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rank-panel ol,
.rank-wide ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.rank-item:last-child a {
  border-bottom: 0;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.rank-title {
  color: #111827;
  font-weight: 800;
}

.rank-meta {
  color: #64748b;
  font-size: 13px;
}

.rank-score {
  color: #ea580c;
  font-weight: 900;
  font-size: 13px;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 84px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.45), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 55%, #1e3a8a);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  margin-bottom: 24px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box span {
  color: #475569;
  font-weight: 800;
}

.search-box input,
.search-page-panel input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: 0;
  padding: 13px 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.search-page-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-count {
  color: #475569;
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
}

.category-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: #64748b;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  filter: blur(8px);
  transform: scale(1.08);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.9) 42%, rgba(2, 6, 23, 0.58));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  margin-bottom: 18px;
  font-size: 14px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
}

.detail-line {
  max-width: 850px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

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

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

.player-card {
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.video-start span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.34);
  font-size: 34px;
}

.video-start strong {
  font-size: 18px;
}

.video-shell.is-playing .video-start {
  display: none;
}

.watch-info {
  padding: 24px;
}

.watch-info h2,
.content-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.watch-info p,
.content-panel p {
  margin: 0 0 16px;
  color: #475569;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-panel {
  padding: 28px;
}

.search-page-panel {
  padding: 22px;
  margin-bottom: 26px;
}

.search-page-panel p {
  margin: 12px 0 0;
  color: #64748b;
  font-weight: 800;
}

.rank-wide {
  padding: 22px 28px;
}

.rank-wide .rank-item a {
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 34px;
  padding: 54px 0 34px;
}

.site-footer h2,
.site-footer h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
}

.site-footer a {
  display: inline-block;
  margin: 0 16px 10px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  cursor: pointer;
}

.cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  line-height: 1.35;
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.7), transparent 28%),
    linear-gradient(135deg, #1e3a8a, #020617);
}

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

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

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

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

  .rank-panel {
    position: static;
  }
}

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

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

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

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
  }

  .hero-poster {
    display: none;
  }

  .feature-grid,
  .grid-4,
  .grid-5,
  .grid-6,
  .category-grid,
  .category-overview-grid,
  .article-grid,
  .footer-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .detail-poster {
    display: none;
  }

  .detail-hero-inner {
    display: block;
    min-height: auto;
  }
}

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

  .brand small {
    display: none;
  }

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

  .hero-copy p,
  .detail-line,
  .page-hero p {
    font-size: 16px;
  }

  .feature-grid,
  .grid-4,
  .grid-5,
  .grid-6,
  .category-grid,
  .category-overview-grid,
  .article-grid,
  .footer-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-wide .rank-item a,
  .rank-item a {
    grid-template-columns: 42px 1fr;
  }

  .rank-meta,
  .rank-score {
    grid-column: 2;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
