:root {
  --night-950: #070a0f;
  --night-900: #0d1117;
  --night-850: #111821;
  --night-800: #161b22;
  --night-700: #21262d;
  --night-600: #30363d;
  --night-500: #484f58;
  --night-400: #6e7681;
  --night-300: #8b949e;
  --night-200: #b1bac4;
  --night-100: #d0d7de;
  --swamp-900: #121a16;
  --swamp-800: #1a2620;
  --swamp-700: #243329;
  --moss-800: #2a4227;
  --moss-700: #3a5937;
  --moss-600: #4d7348;
  --moss-500: #63965d;
  --moss-400: #7aaa73;
  --moss-300: #96c48f;
  --white: #ffffff;
  --shadow-swamp: 0 18px 45px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.22);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--night-900);
  color: var(--night-100);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--swamp-700);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--moss-300);
  background: var(--swamp-800);
  box-shadow: inset 0 0 0 1px rgba(150, 196, 143, 0.15);
  transition: background 0.25s ease, transform 0.25s ease;
}

.brand:hover .brand-icon {
  background: var(--swamp-700);
  transform: translateY(-1px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--moss-300);
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--night-400);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.nav-link {
  color: var(--night-300);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--swamp-800);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--night-200);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--swamp-700);
  background: var(--night-800);
  padding: 10px 16px 18px;
}

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

.mobile-link {
  display: block;
  padding: 10px 0;
  color: var(--night-300);
  font-weight: 600;
}

.mobile-link.is-active,
.mobile-link:hover {
  color: var(--moss-300);
}

.hero-carousel {
  position: relative;
  min-height: clamp(520px, 72vh, 820px);
  overflow: hidden;
  background: var(--night-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 38%, rgba(122, 170, 115, 0.18), transparent 28%),
    linear-gradient(to top, var(--night-900) 0%, rgba(13, 17, 23, 0.74) 38%, rgba(13, 17, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 118px 0 78px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(42, 66, 39, 0.92);
  color: var(--moss-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.58);
}

.hero-copy h2 + h2,
.hero-copy h1 + h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  color: var(--moss-300);
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 22px;
  color: var(--night-200);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.84);
  color: var(--night-200);
  border: 1px solid rgba(150, 196, 143, 0.16);
  font-size: 13px;
  font-style: normal;
}

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

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

.btn:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.btn-primary,
.filter-panel button {
  color: var(--white);
  background: var(--moss-600);
  box-shadow: 0 12px 28px rgba(77, 115, 72, 0.34);
}

.btn-primary:hover,
.filter-panel button:hover {
  background: var(--moss-500);
}

.btn-ghost {
  color: var(--night-100);
  background: rgba(22, 27, 34, 0.72);
  box-shadow: inset 0 0 0 1px rgba(150, 196, 143, 0.18);
}

.btn-ghost:hover {
  color: var(--moss-300);
  background: rgba(26, 38, 32, 0.92);
}

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

.hero-dot {
  width: 38px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(177, 186, 196, 0.35);
}

.hero-dot.is-active {
  background: var(--moss-300);
}

.search-hero {
  background: var(--night-800);
  border-top: 1px solid var(--swamp-700);
  border-bottom: 1px solid var(--swamp-700);
  padding: 24px 16px;
}

.home-search {
  width: min(780px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--swamp-700);
  border-radius: 999px;
  background: var(--night-900);
  color: var(--night-100);
  outline: none;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--moss-600);
  box-shadow: 0 0 0 4px rgba(77, 115, 72, 0.18);
}

.home-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--moss-600);
  color: var(--white);
  font-weight: 800;
}

.quick-links {
  width: min(780px, 100%);
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.quick-links a {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--swamp-800);
  color: var(--night-300);
  font-size: 13px;
}

.quick-links a:hover {
  color: var(--moss-300);
}

.section {
  padding: 72px 0;
}

.section-night {
  background: var(--night-800);
}

.section-deep {
  background: var(--night-900);
}

.section-swamp {
  background: var(--swamp-900);
}

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

.section-heading h2,
.ranking-head h2,
.sidebar-card h2,
.category-overview-head h2,
.detail-panel h2 {
  margin: 0;
  color: var(--moss-300);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading p,
.category-overview-head p {
  margin: 8px 0 0;
  color: var(--night-300);
}

.section-more,
.ranking-head a {
  color: var(--moss-300);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 18px;
}

.wide-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.small-poster-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.library-grid {
  margin-top: 28px;
}

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

.movie-card-wide {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--night-700);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card-wide:hover {
  transform: translateY(-4px);
  background: var(--night-600);
  box-shadow: var(--shadow-swamp);
}

.wide-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night-700);
}

.wide-cover img,
.poster-image img,
.compact-link img,
.related-card img,
.ranking-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.related-card:hover img,
.ranking-row:hover img {
  transform: scale(1.08);
}

.play-badge,
.poster-play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--moss-600);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-wide:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wide-body {
  padding: 16px;
}

.card-title {
  display: block;
  margin-bottom: 8px;
  color: var(--night-100);
  font-weight: 800;
  line-height: 1.35;
}

.movie-card:hover .card-title,
.poster-link:hover strong,
.compact-link:hover span,
.ranking-row:hover strong,
.related-card:hover strong {
  color: var(--moss-300);
}

.wide-body p,
.poster-content em,
.related-card small,
.ranking-info em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--night-400);
  font-style: normal;
}

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
  color: var(--night-400);
  font-size: 13px;
}

.meta-row span,
.detail-meta span,
.detail-meta a {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--night-800);
}

.detail-meta a {
  color: var(--moss-300);
}

.movie-card-poster {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--night-700);
  box-shadow: var(--shadow-soft);
}

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

.poster-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--night-700);
  overflow: hidden;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.08) 58%, transparent);
}

.poster-play {
  left: 50%;
  top: 46%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
}

.poster-content strong,
.poster-content small,
.poster-content em {
  display: block;
}

.poster-content strong {
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
}

.poster-content small {
  margin-top: 4px;
  color: var(--night-300);
  font-size: 12px;
}

.poster-content em {
  margin-top: 6px;
  font-size: 12px;
}

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

.category-card,
.category-overview-card,
.ranking-box,
.detail-panel,
.sidebar-card,
.filter-panel {
  border-radius: var(--radius-lg);
  background: var(--night-800);
  box-shadow: inset 0 0 0 1px rgba(150, 196, 143, 0.08), var(--shadow-soft);
}

.category-card {
  display: flex;
  min-height: 170px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(122, 170, 115, 0.2), transparent 42%),
    var(--night-800);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  background:
    radial-gradient(circle at top right, rgba(122, 170, 115, 0.32), transparent 42%),
    var(--swamp-800);
}

.category-card span {
  color: var(--moss-300);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: var(--night-100);
  font-size: 14px;
  line-height: 1.5;
}

.category-card em {
  color: var(--night-400);
  font-size: 13px;
  font-style: normal;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-box {
  position: sticky;
  top: 96px;
  padding: 24px;
}

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

.ranking-box ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ranking-box li a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(33, 38, 45, 0.58);
}

.ranking-box li a:hover {
  background: var(--night-700);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--moss-800);
  color: var(--moss-300);
  font-weight: 900;
}

.rank-title,
.rank-meta {
  display: block;
}

.rank-title {
  color: var(--night-100);
  font-weight: 800;
}

.rank-meta {
  margin-top: 2px;
  color: var(--night-400);
  font-size: 12px;
}

.scroll-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.spotlight-list,
.category-overview-list {
  display: grid;
  gap: 24px;
}

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

.page-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(122, 170, 115, 0.18), transparent 30%),
    linear-gradient(135deg, var(--night-900), var(--swamp-900));
}

.slim-hero {
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--swamp-700);
}

.slim-hero h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.slim-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--night-200);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--night-400);
  font-size: 14px;
}

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

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

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

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

.movie-card-compact {
  overflow: hidden;
  border-radius: 12px;
  background: var(--night-700);
}

.compact-link {
  display: grid;
  gap: 10px;
}

.compact-link img {
  aspect-ratio: 3 / 4;
  background: var(--night-700);
}

.compact-link span {
  min-height: 48px;
  padding: 0 10px 12px;
  color: var(--night-100);
  font-weight: 700;
  line-height: 1.35;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-panel span {
  color: var(--night-300);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel button {
  min-width: 96px;
}

.empty-state {
  margin: 28px 0 0;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--night-700);
  color: var(--night-300);
  text-align: center;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.ranking-row {
  border-radius: var(--radius-md);
  background: var(--night-800);
  box-shadow: var(--shadow-soft);
}

.ranking-row a {
  display: grid;
  grid-template-columns: 58px 110px 1fr 72px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--moss-800);
  color: var(--moss-300);
  font-weight: 900;
}

.ranking-row img {
  width: 110px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--night-700);
}

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

.ranking-info strong {
  color: var(--night-100);
  font-size: 18px;
}

.ranking-info small {
  margin-top: 6px;
  color: var(--night-400);
}

.ranking-score {
  color: var(--moss-300);
  font-size: 26px;
  font-weight: 900;
  text-align: right;
}

.detail-top {
  padding: 28px 0 72px;
  background: var(--night-900);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.14));
  color: var(--white);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--moss-600);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  font-size: 28px;
  padding-left: 4px;
}

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

.player-error {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: none;
  max-width: calc(100% - 40px);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.86);
  color: #ffb4b4;
  font-size: 14px;
}

.player-shell.has-error .player-error {
  display: block;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-panel section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--swamp-700);
}

.detail-panel h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.detail-panel p {
  margin: 0;
  color: var(--night-300);
  white-space: pre-wrap;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.related-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--night-700);
}

.related-card img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--night-700);
}

.related-card strong,
.related-card small {
  display: block;
}

.related-card strong {
  color: var(--night-100);
  line-height: 1.35;
  font-size: 14px;
}

.related-card small {
  margin-top: 4px;
  color: var(--night-400);
  font-size: 12px;
}

.site-footer {
  background: var(--night-950);
  border-top: 1px solid var(--swamp-700);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--moss-300);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-copy {
  color: var(--night-400);
  font-size: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: var(--moss-300);
}

.footer-copy {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--swamp-700);
  text-align: center;
}

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

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

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

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

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

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

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

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

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    padding: 92px 0 70px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .poster-grid,
  .small-poster-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid,
  .compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ranking-row a {
    grid-template-columns: 46px 86px 1fr;
  }

  .ranking-score {
    grid-column: 3;
    text-align: left;
    font-size: 20px;
  }

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-dot {
    width: 28px;
  }

  .wide-grid,
  .poster-grid,
  .small-poster-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .movie-card-wide {
    grid-column: span 2;
  }

  .poster-content {
    padding: 10px;
  }

  .poster-content em {
    display: none;
  }

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

  .detail-panel,
  .sidebar-card,
  .category-overview-card {
    padding: 18px;
  }

  .related-card {
    grid-template-columns: 94px 1fr;
  }

  .ranking-row a {
    grid-template-columns: 38px 74px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .ranking-row img {
    width: 74px;
  }

  .ranking-info em,
  .ranking-info small {
    display: none;
  }
}
