:root {
  --fog-50: #f8f9fa;
  --fog-100: #f1f3f5;
  --fog-200: #e9ecef;
  --fog-300: #dee2e6;
  --fog-400: #ced4da;
  --fog-500: #adb5bd;
  --fog-600: #868e96;
  --fog-700: #495057;
  --fog-800: #343a40;
  --fog-900: #212529;
  --steel-50: #f0f4f8;
  --steel-100: #d9e2ec;
  --steel-200: #bcccdc;
  --steel-300: #9fb3c8;
  --steel-400: #829ab1;
  --steel-500: #627d98;
  --steel-600: #486581;
  --steel-700: #334e68;
  --steel-800: #243b53;
  --moss-600: #3d663d;
  --moss-800: #233923;
  --accent-400: #fb923c;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.18);
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fog-50);
  color: var(--fog-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: min(100% - 2rem, 88rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--fog-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fog-900);
}

.brand-mark {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--steel-600), var(--steel-800));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 9px 18px rgba(72, 101, 129, 0.28);
}

.brand-mark span {
  position: absolute;
  left: 0.82rem;
  top: 0.55rem;
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.7rem solid var(--white);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--fog-700);
  font-weight: 500;
}

.desktop-nav a,
.nav-dropdown > a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown:hover > a {
  color: var(--steel-600);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  width: 12rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--fog-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
}

.nav-dropdown-panel a:hover {
  background: var(--fog-50);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-search input {
  width: 17rem;
  border: 1px solid var(--fog-300);
  border-radius: 0.7rem;
  padding: 0.66rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-search input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(98, 125, 152, 0.28);
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 0.7rem;
  padding: 0.66rem 1rem;
  background: var(--steel-600);
  color: var(--white);
  font-weight: 600;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
  background: var(--steel-700);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
}

.mobile-toggle span {
  width: 1.25rem;
  height: 2px;
  background: var(--fog-700);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--fog-200);
  padding: 1rem;
  animation: slideDown 0.24s ease;
}

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

.mobile-menu nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.mobile-menu nav a {
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  color: var(--fog-700);
}

.mobile-menu nav a:hover {
  background: var(--fog-100);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 34rem;
  overflow: hidden;
  background: var(--fog-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33, 37, 41, 1), rgba(33, 37, 41, 0.55), rgba(33, 37, 41, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 6rem;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--accent-400);
  font-weight: 600;
}

.hero-kicker strong {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--fog-100);
  backdrop-filter: blur(5px);
}

.hero-content h1 {
  max-width: 48rem;
  margin: 0 0 1rem;
  font-size: clamp(2.45rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 48rem;
  margin: 0 0 2rem;
  color: var(--fog-200);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.7rem;
  padding: 0.78rem 1.4rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--steel-600);
  color: var(--white);
}

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

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(5px);
}

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

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

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

.section-block {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0;
  color: var(--fog-900);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.center-title {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-link,
.text-link {
  color: var(--steel-600);
  font-weight: 600;
}

.section-link:hover,
.text-link:hover {
  color: var(--steel-700);
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(180deg, var(--fog-50), var(--white));
}

.section-dark {
  background: var(--fog-900);
  color: var(--white);
}

.section-dark .section-title,
.section-dark .movie-info h3 {
  color: var(--white);
}

.section-dark .movie-info p,
.section-dark .movie-meta,
.section-dark .movie-badges em {
  color: var(--fog-300);
}

.movie-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.movie-thumb {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: var(--fog-200);
}

.movie-thumb img,
.movie-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-thumb img,
.movie-card-large:hover img {
  transform: scale(1.055);
}

.movie-play {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 1rem;
}

.movie-badges,
.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  color: var(--fog-500);
  font-size: 0.78rem;
}

.movie-badges span {
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--steel-50);
  color: var(--steel-600);
  font-weight: 600;
}

.movie-badges em {
  font-style: normal;
}

.movie-info h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.55rem;
  color: var(--fog-900);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info h3 {
  color: var(--steel-600);
}

.movie-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--fog-600);
  font-size: 0.92rem;
  line-height: 1.6;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 9rem 1fr;
  min-height: 8.5rem;
}

.movie-card-horizontal .movie-thumb {
  height: 100%;
}

.movie-card-horizontal .movie-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-card-large {
  position: relative;
  height: 25rem;
  background: var(--fog-900);
}

.large-card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.26), transparent);
}

.large-card-overlay span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.large-card-overlay h3 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.large-card-overlay p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.85rem;
  color: var(--fog-200);
}

.feature-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 2rem;
}

.horizontal-list {
  display: grid;
  gap: 1rem;
}

.ranking-panel,
.category-sidebar {
  align-self: start;
  position: sticky;
  top: 6.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ranking-head h2,
.category-sidebar h2 {
  margin: 0;
  font-size: 1.15rem;
}

.ranking-head a,
.category-sidebar a {
  color: var(--steel-600);
  font-weight: 600;
}

.rank-list {
  display: grid;
  gap: 0.65rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.2rem 3rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 0.7rem;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--fog-50);
}

.rank-number {
  color: var(--accent-400);
  font-weight: 800;
}

.rank-row img {
  width: 3rem;
  height: 4rem;
  border-radius: 0.45rem;
  object-fit: cover;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}

.rank-tag {
  color: var(--fog-500);
  font-size: 0.82rem;
}

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

.category-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 9rem;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(72, 101, 129, 0.82), rgba(36, 59, 83, 0.9));
}

.category-card strong {
  position: relative;
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

.page-hero,
.detail-hero {
  color: var(--white);
  padding: 3.25rem 0;
}

.page-hero-steel {
  background: linear-gradient(90deg, var(--steel-600), var(--steel-800));
}

.page-hero-moss {
  background: linear-gradient(90deg, var(--moss-600), var(--moss-800));
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 48rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

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

.breadcrumb strong {
  color: var(--white);
  font-weight: 600;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-cover-collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 10rem;
  overflow: hidden;
}

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

.category-overview-body {
  padding: 1.25rem;
}

.category-overview-body h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.category-overview-body p {
  margin: 0 0 1rem;
  color: var(--fog-600);
}

.category-overview-body ul {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.category-overview-body li a {
  color: var(--fog-700);
}

.category-overview-body li a:hover {
  color: var(--steel-600);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-search {
  flex: 1;
}

.filter-search input {
  width: 100%;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: var(--fog-100);
  color: var(--fog-700);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--steel-600);
  color: var(--white);
}

.is-filter-hidden {
  display: none !important;
}

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

.ranking-list-full {
  display: grid;
  gap: 1rem;
}

.ranking-card {
  display: grid;
  grid-template-columns: 4rem 7rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--steel-50);
  color: var(--steel-700);
  font-weight: 800;
}

.ranking-card img {
  width: 7rem;
  height: 9rem;
  border-radius: 0.7rem;
  object-fit: cover;
}

.ranking-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.ranking-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.85rem;
  color: var(--fog-600);
}

.ranking-card div div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--fog-500);
  font-size: 0.88rem;
}

.category-sidebar {
  display: grid;
  gap: 0.75rem;
}

.category-sidebar a {
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--fog-50);
}

.category-sidebar a:hover {
  background: var(--steel-50);
}

.hero-search {
  max-width: 44rem;
  margin-top: 1.6rem;
}

.hero-search input {
  flex: 1;
  width: auto;
}

.search-summary {
  margin-bottom: 1.5rem;
  color: var(--fog-900);
  font-size: 1.25rem;
  font-weight: 700;
}

.detail-hero {
  background: var(--fog-900);
  padding: 1.8rem 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.detail-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #000000;
  color: var(--white);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.player-dark {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.player-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.player-cover strong {
  position: relative;
  margin-top: 6.8rem;
  font-size: 1.1rem;
}

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

.detail-content {
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--fog-200);
  color: var(--fog-600);
}

.detail-meta span {
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  background: var(--fog-100);
}

.detail-content section {
  margin-top: 1.8rem;
}

.detail-content h2,
.detail-sidebar h2 {
  margin: 0 0 0.85rem;
  font-size: 1.28rem;
  font-weight: 700;
}

.detail-content p {
  margin: 0 0 1rem;
  color: var(--fog-700);
  line-height: 1.85;
}

.lead-text {
  font-weight: 700;
}

.review-box {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--fog-50);
}

.tag-area div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-area span {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: var(--fog-100);
  color: var(--fog-700);
}

.detail-sidebar {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.related-more {
  margin-top: 1rem;
}

.site-footer {
  margin-top: 5rem;
  background: var(--fog-900);
  color: var(--fog-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.footer-brand {
  margin-bottom: 1rem;
  color: var(--fog-100);
}

.footer-about p {
  max-width: 34rem;
  margin: 0;
  color: var(--fog-400);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: var(--fog-100);
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--fog-800);
  padding: 1rem 0;
  color: var(--fog-500);
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 1.2rem;
  }

  .header-search input {
    width: 13rem;
  }

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

  .feature-columns,
  .detail-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .category-sidebar,
  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-slider {
    height: 76vh;
    min-height: 32rem;
  }

  .movie-grid-three,
  .movie-grid-four,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container-custom {
    width: min(100% - 1.25rem, 88rem);
  }

  .header-inner {
    min-height: 4.2rem;
  }

  .brand,
  .footer-brand {
    font-size: 1.18rem;
  }

  .hero-content {
    padding-bottom: 5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-actions,
  .hero-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .section-block {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

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

  .movie-grid-three,
  .movie-grid-four,
  .category-overview-grid,
  .footer-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 7rem 1fr;
  }

  .movie-card-horizontal .movie-thumb {
    min-height: 8rem;
  }

  .ranking-card {
    grid-template-columns: 3rem 5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .ranking-card img {
    width: 5rem;
    height: 7rem;
  }

  .ranking-card p,
  .ranking-card div div {
    display: none;
  }

  .detail-content {
    padding: 1.2rem;
  }
}
