:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.25);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.26);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 12px 22px rgba(6, 182, 212, 0.3);
  transition: transform 0.25s ease;
}

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

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.nav-link {
  color: #f8fafc;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-400);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
}

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

.mobile-link {
  padding: 10px 4px;
  color: #f8fafc;
  font-weight: 600;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--cyan-400);
}

main {
  min-height: 60vh;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.28), transparent 28%), linear-gradient(135deg, var(--slate-800), var(--slate-700), #164e63);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.62), rgba(15, 23, 42, 0.18), rgba(8, 47, 73, 0.56));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 56px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 540px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.45));
}

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

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

.eyebrow,
.section-heading span,
.category-overview-head span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info .one-line {
  margin: 20px 0 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.22);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.tag-row.large span {
  font-size: 13px;
  padding: 7px 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 16px 26px rgba(6, 182, 212, 0.25);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.dark {
  color: var(--slate-800);
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
}

.btn.text {
  color: var(--cyan-400);
  padding-inline: 6px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.intro-section,
.content-section,
.split-section,
.category-overview-list,
.link-cloud,
.breadcrumb,
.article-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-section {
  padding: 58px 0 24px;
}

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

.section-heading.center {
  display: block;
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.small {
  display: block;
}

.section-heading h2,
.category-overview-head h2,
.link-cloud h2,
.detail-article h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-head p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading a {
  color: #0891b2;
  font-weight: 800;
}

.search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
  background: var(--slate-100);
}

.search-box span {
  color: var(--cyan-500);
  font-size: 20px;
  font-weight: 900;
}

.search-box input,
.search-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--slate-800);
  background: transparent;
}

.search-panel select {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 12px;
  background: var(--slate-100);
}

.global-search-results {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.global-search-results.is-active {
  display: grid;
}

.search-result-link {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.search-result-link img {
  width: 46px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-link strong,
.search-result-link em {
  display: block;
}

.search-result-link strong {
  color: var(--slate-900);
  font-size: 14px;
}

.search-result-link em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.content-section {
  padding: 58px 0;
}

.soft-bg {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1280px) / 2));
  background: linear-gradient(180deg, #f8fafc, #eef6fb);
}

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

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

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

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

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.poster-wrap figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.68);
  font-size: 12px;
  font-weight: 800;
}

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

.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 8px 0 0;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 28px;
  padding: 40px 0 58px;
}

.wide-panel,
.ranking-panel,
.category-overview-card,
.link-cloud,
.detail-article {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.wide-panel,
.ranking-panel {
  padding: 24px;
}

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

.category-tile {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
  color: var(--white);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.82));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
  display: block;
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  max-width: 90%;
  margin-top: 52px;
  font-size: 13px;
  line-height: 1.6;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-100);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #e0f2fe;
}

.rank-number {
  color: var(--cyan-500);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  border-radius: 30px;
  background: radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, var(--slate-800), #155e75);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 780px;
}

.category-overview-list {
  display: grid;
  gap: 22px;
  padding: 40px 0 64px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.link-cloud {
  padding: 24px;
  margin-bottom: 58px;
}

.link-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.link-cloud a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #0891b2;
  background: #ecfeff;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 800;
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-info {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.player-card {
  padding: 12px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.25);
  font-size: 30px;
}

.player-start strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.player-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-info {
  padding: 30px;
}

.detail-info .one-line {
  color: var(--muted);
  font-size: 16px;
}

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

.movie-meta div {
  border-radius: 16px;
  padding: 13px;
  background: var(--slate-100);
}

.movie-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta dd {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-weight: 900;
}

.movie-meta a {
  color: #0891b2;
}

.article-section {
  padding: 32px 0 10px;
}

.detail-article {
  padding: 30px;
}

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

.detail-article h2 + p {
  margin-top: 14px;
}

.detail-article p + h2 {
  margin-top: 30px;
}

.detail-article p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

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

.site-footer {
  margin-top: 30px;
  color: #cbd5e1;
  background: var(--slate-900);
}

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

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

.site-footer p {
  margin: 12px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

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

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

  .hero-slide,
  .detail-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 860px;
  }

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

  .all-ranks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand-text strong {
    font-size: 20px;
  }

  .hero-shell {
    padding-top: 36px;
  }

  .hero-slider {
    min-height: 790px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .page-hero {
    padding: 30px;
    display: block;
  }

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

  .global-search-results {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .category-overview-head {
    display: block;
  }

  .section-heading a,
  .category-overview-head .btn {
    margin-top: 12px;
  }

  .movie-meta,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 820px;
  }

  .hero-actions {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }
}
