:root {
  --mist-50: #f8f9fa;
  --mist-100: #f1f3f5;
  --mist-200: #e9ecef;
  --mist-300: #dee2e6;
  --mist-600: #868e96;
  --mist-700: #495057;
  --mist-800: #343a40;
  --mist-900: #212529;
  --fog-50: #f0f9ff;
  --fog-100: #e0f2fe;
  --fog-400: #38bdf8;
  --fog-600: #0284c7;
  --fog-700: #0369a1;
  --cocoon-50: #f0fdf4;
  --cocoon-100: #dcfce7;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--mist-50), var(--white));
  color: var(--mist-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.image-off {
  opacity: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(222, 226, 230, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--mist-900);
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fog-600), var(--fog-400));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-weight: 700;
  color: var(--mist-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--fog-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--fog-50);
  color: var(--fog-700);
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--mist-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 72px 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  animation: slide-up 0.75s ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--fog-100);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--fog-600);
}

.hero h1 {
  width: min(780px, 100%);
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-desc {
  width: min(720px, 100%);
  margin: 0 0 30px;
  color: var(--mist-200);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.section-title-row,
.search-grid,
.detail-meta,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn {
  padding: 0 22px;
}

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

.btn.primary {
  background: var(--fog-600);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.32);
}

.btn.primary:hover {
  background: var(--fog-700);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 36px;
  background: var(--white);
}

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

.section-title-row {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.text-link {
  color: var(--fog-600);
}

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

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

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

.movie-link {
  display: block;
  height: 100%;
}

.poster-frame,
.rank-cover,
.feature-cover,
.category-cover,
.detail-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mist-200), var(--fog-50));
}

.poster-frame {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.poster-frame img,
.feature-cover img,
.category-cover img,
.rank-cover img,
.detail-cover {
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-link:hover .poster-frame img,
.feature-row:hover .feature-cover img,
.category-large:hover .category-cover img,
.rank-item a:hover .rank-cover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-link:hover .poster-shade {
  background: rgba(0, 0, 0, 0.38);
}

.play-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--fog-700);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-link:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  display: block;
  padding: 14px 2px 0;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--mist-900);
  font-size: 17px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.movie-link:hover .movie-title {
  color: var(--fog-600);
}

.movie-meta,
.movie-desc,
.rank-text em,
.rank-text small,
.feature-copy em,
.feature-copy small,
.category-large small,
.category-large em {
  display: block;
  color: var(--mist-600);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span,
.detail-tags a,
.detail-meta a,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--fog-50);
  color: var(--fog-700);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.mist-band {
  background: var(--mist-50);
  border-top: 1px solid var(--mist-200);
  border-bottom: 1px solid var(--mist-200);
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.compact-card {
  width: 220px;
  flex: 0 0 220px;
}

.feature-list {
  display: grid;
  gap: 24px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(280px, 48%) 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.feature-cover {
  min-height: 280px;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 32px;
}

.feature-copy strong {
  color: var(--mist-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.feature-copy span {
  color: var(--mist-700);
  font-size: 16px;
}

.feature-copy small {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--fog-100);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--white), var(--fog-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-tile strong {
  color: var(--mist-900);
  font-size: 20px;
}

.category-tile span {
  color: var(--mist-700);
  font-size: 14px;
}

.search-panel {
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid var(--mist-200);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.search-grid {
  align-items: end;
}

.search-grid label {
  flex: 1 1 260px;
  display: grid;
  gap: 8px;
  color: var(--mist-700);
  font-weight: 800;
}

.search-grid input,
.search-grid select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--mist-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--mist-900);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-grid input:focus,
.search-grid select:focus {
  border-color: var(--fog-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 54px 76px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rank-num {
  color: var(--fog-600);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.rank-text strong {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  color: var(--mist-900);
}

.rank-text small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(135deg, var(--mist-900), var(--fog-700));
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.page-hero.with-cover {
  min-height: 360px;
  display: flex;
  align-items: end;
}

.page-hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.24));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  width: min(760px, 100%);
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
  width: min(720px, 100%);
  margin: 0;
  color: var(--mist-200);
  font-size: 18px;
}

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

.category-large {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 160px;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.category-large strong,
.category-large em,
.category-large small {
  display: block;
}

.category-large strong {
  margin-bottom: 6px;
  color: var(--mist-900);
  font-size: 22px;
  font-style: normal;
}

.category-large em {
  margin-bottom: 8px;
  color: var(--fog-600);
  font-style: normal;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: var(--mist-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(12px);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 37, 41, 0.32), rgba(33, 37, 41, 0.95));
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 30px;
  align-items: start;
}

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

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

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--fog-700);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-xl);
}

.play-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--fog-600);
  color: var(--white);
  font-size: 12px;
}

.play-button.is-hidden {
  display: none;
}

.detail-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xl);
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.detail-card h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.detail-card p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--mist-700);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 64px 0 0;
}

.article-panel,
.side-panel {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-panel p {
  margin: 0 0 24px;
  color: var(--mist-700);
  font-size: 17px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--mist-200);
  color: var(--mist-700);
  font-weight: 800;
  transition: color 0.2s ease;
}

.side-link:hover {
  color: var(--fog-600);
}

.related-row .compact-card {
  width: 190px;
  flex-basis: 190px;
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0 24px;
  background: var(--mist-900);
  color: var(--mist-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  color: var(--white);
}

.footer-grid p {
  margin: 10px 0 0;
  color: var(--mist-300);
}

.footer-links a {
  color: var(--mist-300);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--mist-800);
  color: var(--mist-600);
  font-size: 14px;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .site-nav {
    position: fixed;
    inset: 72px 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--mist-200);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-xl);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .nav-link {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--fog-50);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 74vh;
    min-height: 500px;
  }

  .hero-slide {
    padding: 50px 0 74px;
  }

  .hero-dots {
    left: 12px;
    right: auto;
  }

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

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

  .feature-row,
  .category-large,
  .detail-card {
    grid-template-columns: 1fr;
  }

  .feature-cover {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .rank-item a {
    grid-template-columns: 44px 64px 1fr;
  }

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

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

  .compact-card,
  .related-row .compact-card {
    width: 168px;
    flex-basis: 168px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
