:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  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 {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  color: var(--white);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.30);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-300);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(34, 211, 238, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

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

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 0 0 112px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-badges,
.hero-tags,
.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-badges span,
.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-badges span {
  background: rgba(6, 182, 212, 0.92);
  color: var(--white);
}

.hero-tags span {
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero h1,
.hero h2,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--slate-100);
  font-size: clamp(17px, 2vw, 22px);
}

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

.primary-button,
.ghost-button,
.section-link,
.quick-search button,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button,
.search-box button {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-button.dark {
  color: var(--slate-900);
  background: var(--white);
  border-color: var(--slate-200);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.quick-search button:hover,
.search-box button:hover {
  transform: translateY(-2px);
}

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

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

.hero-dot.active {
  background: var(--cyan-400);
}

.hero-rail {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  width: 360px;
  display: grid;
  gap: 10px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.hero-mini-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini-card span {
  font-weight: 800;
}

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

.intro-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.intro-card,
.article-card,
.side-card,
.rank-panel,
.category-card,
.search-summary {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.intro-card {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-card h2,
.section-heading h2,
.rank-panel h2,
.side-card h2,
.article-card h2,
.category-card h2,
.rank-card h2 {
  margin: 0;
  color: var(--slate-900);
  line-height: 1.2;
}

.intro-card h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.intro-card p {
  color: var(--slate-600);
}

.quick-search,
.search-box {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.quick-search input,
.search-box input,
.filter-bar input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: var(--white);
  color: var(--slate-900);
}

.quick-search input:focus,
.search-box input:focus,
.filter-bar input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.category-tile {
  min-height: 124px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  color: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  color: var(--slate-300);
}

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

.section-heading span {
  display: block;
  margin-top: 8px;
  color: var(--slate-600);
}

.section-link {
  color: var(--cyan-700, #0e7490);
  background: rgba(6, 182, 212, 0.10);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 182, 212, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.meta-row {
  gap: 6px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: var(--slate-300);
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--cyan-700, #0e7490);
  background: rgba(6, 182, 212, 0.10);
  font-size: 12px;
}

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

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

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

.rank-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--slate-50);
  transition: background 0.2s ease;
}

.rank-list a:hover {
  background: rgba(6, 182, 212, 0.10);
}

.rank-list strong {
  color: var(--cyan-600);
}

.rank-list span {
  font-weight: 800;
}

.rank-list em {
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.sub-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.34), transparent 38%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.sub-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.sub-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sub-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--slate-200);
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card div:last-child {
  padding: 22px;
}

.category-card p {
  color: var(--slate-600);
}

.filter-bar {
  margin-bottom: 24px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 134px 1fr;
  gap: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

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

.rank-cover strong {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(6, 182, 212, 0.92);
}

.rank-card p {
  color: var(--slate-600);
}

.large-search {
  max-width: 720px;
}

.search-summary {
  margin-bottom: 24px;
  padding: 18px 22px;
  color: var(--slate-700);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-bg {
  filter: blur(1px);
  transform: scale(1.02);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.42));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  color: var(--slate-300);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  max-width: 820px;
}

.detail-section {
  padding-top: 52px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 24px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(to top, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

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

.player-icon {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.36);
  font-size: 32px;
  text-indent: 4px;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--white);
  font-weight: 800;
}

.article-card,
.side-card {
  padding: 26px;
}

.article-card p,
.side-card p {
  color: var(--slate-700);
  font-size: 17px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

.info-list dt {
  color: var(--slate-500);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 700;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.related-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
  transition: background 0.2s ease;
}

.related-item:hover {
  background: rgba(6, 182, 212, 0.10);
}

.related-item img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item span {
  font-weight: 900;
}

.related-item small {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  background: var(--slate-900);
  color: var(--slate-300);
}

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

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.footer-grid p {
  color: var(--slate-400);
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-500);
}

@media (max-width: 1120px) {
  .hero-rail {
    display: none;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    height: 78vh;
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .intro-section,
  .split-section,
  .content-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    align-items: start;
  }

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

  .rank-panel {
    position: static;
  }

  .movie-grid,
  .all-grid,
  .compact-grid,
  .horizontal-list,
  .category-card-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner,
  .mobile-nav,
  .page-section,
  .hero-content,
  .sub-hero > div,
  .detail-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    min-height: 570px;
  }

  .hero h1,
  .hero h2,
  .detail-copy h1,
  .sub-hero h1 {
    font-size: 38px;
  }

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

  .page-section {
    padding: 46px 0;
  }

  .category-strip,
  .movie-grid,
  .all-grid,
  .compact-grid,
  .horizontal-list,
  .category-card-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

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

  .quick-search,
  .search-box {
    flex-direction: column;
  }

  .rank-card {
    grid-template-columns: 110px 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-wrap {
    padding-bottom: 46px;
  }

  .player-icon {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
