:root {
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-blue: #2563eb;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--color-gray-900);
  background: linear-gradient(180deg, var(--color-gray-50), #ffffff 460px);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: var(--shadow-sm);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-blue));
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-gray-700);
  font-weight: 650;
}

.nav-link {
  position: relative;
  padding-block: 20px;
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-emerald);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--color-gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--color-gray-700);
  border-radius: var(--radius-pill);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-top: 1px solid var(--color-gray-200);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--color-gray-700);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-emerald);
  background: #ecfdf5;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(16, 185, 129, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58) 46%, rgba(17, 24, 39, 0.12)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(700px, 100%);
  color: #ffffff;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.hero-tags span:first-child {
  color: #ffffff;
  background: var(--color-emerald);
  border-color: var(--color-emerald);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  width: min(640px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 14px 26px;
  color: #ffffff;
  background: var(--color-emerald);
  box-shadow: 0 12px 26px rgba(5, 150, 105, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--color-emerald-dark);
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.40);
}

.secondary-button {
  padding: 13px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 30px;
  line-height: 1;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.32);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.content-section {
  padding-block: 56px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-more,
.text-link {
  color: var(--color-emerald);
  font-weight: 750;
}

.section-more:hover,
.text-link:hover {
  color: var(--color-emerald-dark);
}

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

.compact-grid,
.all-movies-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.64));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 750;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
}

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

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

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

.movie-card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 0;
  color: var(--color-gray-600);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--color-gray-500);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 650;
}

.highlight-section {
  padding: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

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

.category-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--color-gray-900);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-images {
  display: flex;
  min-height: 112px;
}

.category-card-images img {
  width: 74px;
  height: 108px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.category-card-images img + img {
  margin-left: -36px;
}

.category-card strong {
  display: block;
  font-size: 22px;
}

.category-card span {
  display: inline-block;
  margin-top: 4px;
  color: var(--color-emerald);
  font-weight: 750;
}

.category-card p {
  margin: 6px 0 0;
  color: var(--color-gray-600);
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.horizontal-poster {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

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

.horizontal-title-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.horizontal-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.horizontal-card h3 a:hover {
  color: var(--color-emerald);
}

.horizontal-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--color-gray-600);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.list-rank {
  flex: 0 0 auto;
  color: var(--color-emerald);
  font-weight: 900;
}

.page-main {
  padding-block: 34px 64px;
}

.page-hero {
  margin-bottom: 32px;
  padding: clamp(34px, 6vw, 62px);
  border-radius: var(--radius-xl);
}

.page-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--color-gray-600);
  font-size: 18px;
}

.soft-hero {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.gradient-hero,
.category-page-hero,
.rank-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-blue));
  overflow: hidden;
  position: relative;
}

.gradient-hero::after,
.category-page-hero::after,
.rank-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.gradient-hero p,
.category-page-hero p,
.rank-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  margin: 0;
  color: var(--color-emerald);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.76);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--color-gray-600);
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--color-gray-900);
  background: #ffffff;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.ghost-button {
  min-height: 44px;
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-700);
  background: #ffffff;
}

.ghost-button:hover {
  color: var(--color-emerald);
  border-color: #a7f3d0;
}

.filter-count {
  margin: 0;
  color: var(--color-gray-600);
  white-space: nowrap;
}

.filter-count strong {
  color: var(--color-emerald);
}

.empty-state {
  margin-top: 28px;
  padding: 42px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-gray-500);
  background: #ffffff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-overview-cover {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: #e5e7eb;
}

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

.category-overview-body h2 {
  margin: 8px 0 8px;
  font-size: 30px;
}

.category-overview-body p {
  max-width: 760px;
  color: var(--color-gray-600);
}

.category-overview-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

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

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

.rank-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 42px;
}

.rank-feature-card {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rank-feature-card a:first-child {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: #e5e7eb;
}

.rank-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-feature-card span {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  font-weight: 850;
}

.rank-feature-card h2 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.rank-feature-card p {
  margin: 0;
  color: var(--color-gray-600);
}

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

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

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

.player-card,
.detail-side-card,
.detail-content-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.92));
  font-size: 18px;
  font-weight: 850;
}

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

.play-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-emerald);
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.42);
  font-size: 28px;
  padding-left: 4px;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.source-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
}

.source-chip {
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 8px 13px;
  color: var(--color-gray-700);
  background: #ffffff;
}

.source-chip.is-active {
  color: #ffffff;
  border-color: var(--color-emerald);
  background: var(--color-emerald);
}

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

.detail-side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: #e5e7eb;
}

.detail-side-card h1 {
  margin: 18px 0 10px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-side-card p {
  margin: 0;
  color: var(--color-gray-600);
}

.detail-meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-gray-200);
  list-style: none;
}

.detail-meta-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
}

.detail-meta-list strong {
  color: var(--color-gray-500);
}

.detail-tags span {
  font-size: 13px;
}

.detail-content-card {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 38px);
}

.content-block + .content-block {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--color-gray-200);
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-block p {
  margin: 0;
  color: var(--color-gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 66px;
  padding-top: 52px;
  color: #d1d5db;
  background: var(--color-gray-900);
}

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

.footer-brand p,
.site-footer p {
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer a:hover {
  color: #34d399;
}

.footer-bottom {
  margin-top: 36px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.accent-blue .type-badge,
.accent-blue .brand-mark {
  background: var(--color-blue);
}

.accent-rose .type-badge {
  background: #e11d48;
}

.accent-slate .type-badge {
  background: #475569;
}

.accent-cyan .type-badge {
  background: #0891b2;
}

.accent-amber .type-badge {
  background: #d97706;
}

.accent-violet .type-badge {
  background: #7c3aed;
}

.accent-orange .type-badge {
  background: #ea580c;
}

.accent-teal .type-badge {
  background: #0f766e;
}

.accent-indigo .type-badge {
  background: #4f46e5;
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-grid,
  .all-movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .horizontal-grid,
  .rank-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-side-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

  .detail-side-card h1 {
    margin-top: 0;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.92)),
      radial-gradient(circle at 50% 25%, rgba(16, 185, 129, 0.28), transparent 38%);
  }

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

  .movie-grid,
  .compact-grid,
  .all-movies-grid,
  .category-grid,
  .horizontal-grid,
  .rank-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .search-box,
  .filter-count {
    grid-column: 1 / -1;
  }

  .detail-side-card {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-slider {
    height: auto;
    min-height: 640px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 106px;
  }

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

  .hero-actions {
    display: grid;
  }

  .movie-grid,
  .compact-grid,
  .all-movies-grid,
  .category-grid,
  .horizontal-grid,
  .rank-feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .highlight-section,
  .page-hero {
    padding: 24px;
  }

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

  .horizontal-card {
    grid-template-columns: 96px 1fr;
  }

  .category-overview-body ul {
    grid-template-columns: 1fr;
  }

  .source-row {
    flex-wrap: wrap;
  }
}
