:root {
  --mist-50: #f8f9fa;
  --mist-100: #f1f3f5;
  --mist-200: #e9ecef;
  --mist-300: #dee2e6;
  --mist-500: #adb5bd;
  --mist-600: #868e96;
  --mist-700: #495057;
  --mist-800: #343a40;
  --mist-900: #212529;
  --mineral-50: #f0f9ff;
  --mineral-300: #7dd3fc;
  --mineral-600: #0284c7;
  --mineral-700: #0369a1;
  --moss-50: #f0fdf4;
  --moss-600: #16a34a;
  --earth-600: #8a6f4d;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(33, 37, 41, 0.12);
  --shadow-soft: 0 12px 28px rgba(33, 37, 41, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--mist-50);
  color: var(--mist-900);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--mist-800), var(--mist-700));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mineral-300), var(--moss-600));
  color: var(--mist-900);
  font-size: 15px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--mist-100);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link.active {
  background: var(--mineral-600);
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  border: 0;
  background: transparent;
}

.nav-drop-panel {
  position: absolute;
  right: 0;
  top: 44px;
  width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  color: var(--mist-800);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.nav-drop-panel a:hover {
  background: var(--mineral-50);
  color: var(--mineral-700);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 0 24px 20px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--mist-100);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(33, 37, 41, 0.62) 48%, rgba(33, 37, 41, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 56px;
  color: var(--white);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--mist-200);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mineral-300);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--mineral-700);
}

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

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

.hero-tags span,
.tag-row span,
.inline-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 13px;
}

.tag-row span,
.inline-tags span {
  background: var(--mineral-50);
  color: var(--mineral-700);
}

.tag-row.large span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  background: var(--mineral-600);
  color: var(--white);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(16px);
}

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

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.92);
  color: var(--white);
  font-weight: 800;
}

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

.hero-controls button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-controls button.active {
  background: var(--mineral-300);
}

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.section-heading a {
  color: var(--mineral-700);
  font-weight: 800;
}

.section-heading.light {
  color: var(--white);
}

.section-heading.light a {
  color: var(--mineral-300);
}

.search-band {
  background: linear-gradient(135deg, var(--mineral-50), var(--moss-50));
  border-bottom: 1px solid var(--mist-200);
}

.search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 30px;
  align-items: center;
}

.search-inner h2 {
  margin: 0;
  font-size: 28px;
}

.search-inner p {
  margin: 8px 0 0;
  color: var(--mist-700);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.select-box span {
  color: var(--mist-700);
  font-weight: 800;
  font-size: 14px;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--mist-300);
  border-radius: 14px;
  background: var(--white);
  padding: 0 16px;
  color: var(--mist-900);
  outline: none;
}

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

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

.category-tile,
.category-overview-card {
  min-height: 142px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

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

.category-tile span,
.category-main-link span {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-tile em,
.category-overview-card p {
  display: block;
  margin-top: 12px;
  color: var(--mist-600);
  font-size: 14px;
  font-style: normal;
}

.category-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-main-link strong {
  color: var(--mineral-700);
  font-size: 14px;
}

.mini-links {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.mini-links a {
  color: var(--mist-700);
  font-size: 14px;
}

.mini-links a:hover {
  color: var(--mineral-700);
}

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

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mist-200);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.rank-badge,
.play-chip {
  position: absolute;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--mineral-600);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.68);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mist-600);
  font-size: 13px;
}

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

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

.movie-card p {
  margin: 10px 0 14px;
  color: var(--mist-700);
  font-size: 14px;
}

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

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

.ranking-panel,
.ranking-page-list,
.content-card,
.player-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-panel h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.ranking-list,
.ranking-page-list {
  display: grid;
  gap: 10px;
}

.ranking-page-list {
  padding: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 44px 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.ranking-row:hover {
  background: var(--mineral-50);
}

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

.ranking-num {
  color: var(--mineral-700);
  font-size: 20px;
  font-weight: 900;
}

.ranking-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ranking-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main em {
  color: var(--mist-600);
  font-size: 13px;
  font-style: normal;
}

.ranking-action {
  color: var(--mineral-700);
  font-weight: 800;
  font-size: 14px;
}

.feature-strip {
  background:
    radial-gradient(circle at 15% 15%, rgba(125, 211, 252, 0.2), transparent 30%),
    linear-gradient(135deg, var(--mist-900), var(--mist-700));
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.18), transparent 30%),
    linear-gradient(135deg, var(--mist-900), var(--mist-700));
  color: var(--white);
}

.page-hero {
  padding: 76px 24px;
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.compact-hero,
.ranking-hero {
  min-height: 360px;
  display: grid;
  align-items: center;
}

.breadcrumb {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--mist-600);
  font-size: 14px;
}

.breadcrumb.bright {
  margin: 0 0 24px;
  color: var(--mist-200);
}

.breadcrumb a:hover {
  color: var(--mineral-300);
}

.filter-panel {
  padding-top: 34px;
  padding-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: end;
}

.detail-hero {
  min-height: 600px;
}

.detail-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

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

.detail-meta-list {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-meta-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--mist-100);
}

.player-shell {
  padding-top: 38px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.46));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.92);
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.36);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: var(--mist-700);
  font-size: 17px;
}

.side-info dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.side-info dt {
  color: var(--mist-600);
  font-size: 13px;
  font-weight: 900;
}

.side-info dd {
  margin: 0;
  font-weight: 700;
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 40px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--mist-300);
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links.vertical {
  display: grid;
}

.footer-links a {
  color: var(--mist-300);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--mineral-300);
}

[hidden-by-filter="true"] {
  display: none !important;
}

@media (max-width: 1120px) {
  .cards-grid,
  .wide-grid,
  .compact-grid,
  .related-grid,
  .category-movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

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

  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }

  .search-inner,
  .filter-panel,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-shell,
  .detail-shell,
  .page-hero,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cards-grid,
  .wide-grid,
  .compact-grid,
  .related-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 34px 48px 1fr;
  }

  .ranking-action {
    display: none;
  }

  .ranking-row img {
    width: 48px;
    height: 64px;
  }

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