:root {
  --mist-50: #f8fafc;
  --mist-100: #f1f5f9;
  --mist-200: #e2e8f0;
  --mist-300: #cbd5e1;
  --mist-400: #94a3b8;
  --mist-500: #64748b;
  --mist-600: #475569;
  --mist-700: #334155;
  --mist-800: #1e293b;
  --mist-900: #0f172a;
  --lake-50: #f0f9ff;
  --lake-100: #e0f2fe;
  --lake-400: #38bdf8;
  --lake-600: #0284c7;
  --lake-700: #0369a1;
  --lake-900: #0c4a6e;
  --sepia-50: #faf8f5;
  --sepia-100: #f5f1ea;
  --sepia-600: #9d7d52;
  --sepia-700: #826545;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mist-900);
  background: linear-gradient(180deg, var(--sepia-50), #ffffff 42%, var(--mist-50));
  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;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, .96);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark,
.footer-logo span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lake-600);
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, .12);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: .02em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--mist-400);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--mist-200);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--lake-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  background: var(--mist-800);
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--mist-200);
  font-size: 14px;
}

.mobile-nav a:hover {
  color: var(--lake-400);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, .22), transparent 28%), linear-gradient(115deg, var(--mist-900), var(--mist-800) 52%, var(--lake-900));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .18), rgba(15, 23, 42, .78));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 54px;
}

.hero-carousel {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items: center;
  gap: 48px;
  min-height: 460px;
  animation: fadeIn .5s ease-in-out;
}

.hero-slide.is-active {
  display: grid;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(224, 242, 254, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .3);
  color: var(--lake-400);
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.hero p {
  margin: 0;
  color: var(--mist-200);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.hero-tags span {
  background: rgba(224, 242, 254, .12);
  color: var(--mist-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  background: var(--lake-600);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(2, 132, 199, .28);
}

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

.btn-secondary {
  border: 1px solid rgba(226, 232, 240, .3);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.hero-poster {
  position: relative;
  max-width: 420px;
  margin-left: auto;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 18px;
  border-radius: 28px;
  background: rgba(2, 132, 199, .22);
  filter: blur(10px);
}

.hero-poster a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(226, 232, 240, .22);
  border-radius: 28px;
  background: var(--mist-800);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

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

.hero-poster-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(14px);
}

.hero-poster-label strong {
  display: block;
  margin-bottom: 4px;
}

.hero-poster-label small {
  color: var(--mist-300);
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

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

.hero-dot {
  width: 30px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, .32);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active {
  width: 52px;
  background: var(--lake-400);
}

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

.hero-quick a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .34);
  color: var(--mist-200);
  font-size: 13px;
}

.hero-quick a:hover {
  color: #ffffff;
  background: rgba(2, 132, 199, .7);
}

.main-section {
  padding: 68px 0;
}

.main-section.alt {
  background: var(--mist-50);
}

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

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--mist-900);
  line-height: 1.2;
}

.section-head h1 {
  font-size: clamp(30px, 5vw, 46px);
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--mist-600);
}

.section-more {
  color: var(--lake-600);
  font-weight: 700;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .55);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, .35);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--mist-800);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(15, 23, 42, .62), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--lake-600);
  color: #ffffff;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--mist-500);
  font-size: 12px;
}

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

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

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

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

.tag-row span {
  background: var(--lake-100);
  color: var(--lake-700);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, var(--lake-50));
  border: 1px solid rgba(203, 213, 225, .62);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .15);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--mist-600);
  font-size: 14px;
}

.category-card a {
  position: relative;
  z-index: 1;
  color: var(--lake-600);
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 42px;
  background: linear-gradient(115deg, var(--mist-900), var(--mist-800) 60%, var(--lake-900));
  color: #ffffff;
}

.page-hero .section-head h1,
.page-hero .section-head p {
  color: #ffffff;
}

.page-hero .section-head p {
  color: var(--mist-200);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, .68);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--mist-300);
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--mist-800);
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  outline: 2px solid rgba(56, 189, 248, .35);
  border-color: var(--lake-400);
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 20px;
  background: var(--mist-50);
  color: var(--mist-600);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, .58);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--lake-100);
  color: var(--lake-700);
  font-size: 22px;
  font-weight: 900;
}

.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-item h3 a:hover {
  color: var(--lake-600);
}

.ranking-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--mist-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-item img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: var(--mist-800);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .84fr);
  gap: 28px;
  padding: 34px 0 68px;
}

.detail-main,
.detail-side-card {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .58);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .22), rgba(0, 0, 0, .72));
  color: #ffffff;
  cursor: pointer;
}

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

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--lake-600);
  font-size: 34px;
  box-shadow: 0 16px 46px rgba(2, 132, 199, .36);
}

.play-overlay strong {
  display: block;
  font-size: 18px;
}

.detail-content {
  padding: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--mist-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--lake-600);
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mist-100);
  color: var(--mist-700);
  font-size: 14px;
}

.detail-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--mist-200);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.detail-section p {
  margin: 0;
  color: var(--mist-700);
}

.review-box {
  padding: 20px;
  border-radius: 18px;
  background: var(--sepia-50);
}

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

.detail-tags span {
  background: var(--lake-100);
  color: var(--lake-700);
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.detail-side-card {
  padding: 20px;
}

.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border-radius: 18px;
}

.movie-card-compact .poster-link {
  aspect-ratio: auto;
  min-height: 128px;
}

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

.movie-card-compact p,
.movie-card-compact .tag-row {
  display: none;
}

.site-footer {
  background: var(--mist-900);
  color: var(--mist-300);
  border-top: 1px solid var(--mist-800);
}

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

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.footer-inner p {
  margin: 0;
  color: var(--mist-400);
  font-size: 14px;
}

.footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-inner li + li {
  margin-top: 8px;
}

.footer-inner a:hover {
  color: var(--lake-400);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--mist-800);
  color: var(--mist-500);
  text-align: center;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .ranking-list,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero-inner {
    padding: 42px 0 38px;
  }

  .hero-slide {
    min-height: auto;
    gap: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

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

  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .ranking-list,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

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

  .ranking-item img {
    display: none;
  }

  .detail-content {
    padding: 20px;
  }

  .movie-card-compact {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}
