:root {
  color-scheme: dark;
  --bg-900: #0f172a;
  --bg-850: #111c31;
  --bg-800: #1e293b;
  --bg-700: #334155;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --cyan-300: #67e8f9;
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.24);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 28rem),
    linear-gradient(180deg, var(--bg-900), var(--bg-800) 45%, var(--bg-900));
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-300));
  box-shadow: 0 0 28px rgba(96, 165, 250, 0.6);
  font-size: 14px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  transform: translateY(-1px);
}

.header-search {
  width: 300px;
  display: flex;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.48);
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  padding: 9px 14px;
}

.header-search button,
.mobile-search button,
.search-form button,
.hero-search-form button {
  border: 0;
  color: #fff;
  background: var(--blue-600);
  padding: 9px 16px;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-form button:hover,
.hero-search-form button:hover {
  background: #1d4ed8;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.mobile-panel {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-soft);
}

.mobile-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-search {
  display: flex;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-image,
.hero-image img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 70vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px;
  display: flex;
  align-items: center;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  margin: 0 0 16px;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.26);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 32px;
  color: var(--text-soft);
}

.hero-meta i {
  width: 1px;
  height: 22px;
  background: rgba(203, 213, 225, 0.38);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 13px 28px;
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  padding: 12px 20px;
  border: 1px solid rgba(203, 213, 225, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.74);
}

.hero-arrow-left {
  left: 22px;
}

.hero-arrow-right {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.hero-search-section,
.section-wrap,
.page-main,
.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-search-section {
  padding-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.hero-search-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: var(--shadow);
}

.hero-search-form label {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
}

.hero-search-form div {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
}

.hero-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 14px 16px;
  color: #fff;
  background: transparent;
}

.quick-links a {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
}

.quick-links a:hover {
  color: #fff;
  background: rgba(96, 165, 250, 0.18);
}

.section-wrap {
  padding-top: 72px;
}

.section-heading {
  margin-bottom: 28px;
}

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

.section-heading h2,
.section-heading h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading h3 {
  font-size: 28px;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-heading a,
.catalog-toolbar a,
.text-link {
  color: var(--blue-400);
  font-weight: 700;
}

.panel-section {
  padding: 42px 24px;
  margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(30, 41, 59, 0.55);
  box-shadow: var(--shadow);
}

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

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.84);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.28);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(36, 52, 76, 0.96);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.38);
}

.movie-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

.movie-card--large .movie-card-media {
  aspect-ratio: 21 / 9;
}

.movie-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 58%);
}

.quality-badge,
.rank-badge,
.card-year,
.card-type {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  backdrop-filter: blur(10px);
}

.quality-badge {
  top: 12px;
  right: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: rgba(245, 158, 11, 0.95);
}

.card-year {
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
}

.card-type {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
}

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

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

.movie-card-body h3 a:hover {
  color: var(--blue-400);
}

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

.card-meta {
  display: flex;
  gap: 12px;
  color: #7dd3fc;
  font-size: 12px;
}

.card-meta span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-blocks {
  display: grid;
  gap: 44px;
}

.category-strip {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

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

.latest-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.latest-item:hover {
  transform: translateY(-2px);
  background: rgba(51, 65, 85, 0.86);
}

.latest-item img {
  width: 156px;
  height: 94px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.latest-item strong,
.latest-item em,
.latest-item small {
  display: block;
}

.latest-item strong {
  margin-bottom: 5px;
  color: #fff;
}

.latest-item em {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}

.latest-item small {
  color: #7dd3fc;
}

.page-main {
  padding-top: 32px;
  padding-bottom: 48px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), transparent 34rem),
    rgba(30, 41, 59, 0.78);
  box-shadow: var(--shadow);
}

.slim-hero {
  padding: 44px;
}

.slim-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.72);
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.category-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(37, 99, 235, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-overview-card p,
.category-overview-card li {
  color: var(--text-muted);
  line-height: 1.65;
}

.category-overview-card ul {
  margin: 12px 0;
  padding-left: 18px;
}

.category-overview-card a:hover {
  color: var(--blue-400);
}

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

.filter-panel,
.aside-card,
.detail-card,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.28);
}

.filter-panel {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.filter-title,
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-title h2 {
  margin: 0;
  font-size: 20px;
}

.filter-title button {
  border: 0;
  color: var(--blue-400);
  background: transparent;
}

.filter-panel label {
  display: block;
  margin-top: 18px;
}

.filter-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.filter-panel input,
.filter-panel select,
.search-form input,
.search-form select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  padding: 11px 12px;
}

.catalog-content {
  min-width: 0;
}

.catalog-toolbar {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.58);
}

.catalog-toolbar p {
  margin: 0;
  color: var(--text-soft);
}

.empty-state {
  margin: 32px 0 0;
  padding: 26px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  color: var(--text-muted);
  text-align: center;
}

.search-panel {
  padding: 22px;
  margin-bottom: 30px;
}

.search-panel p {
  margin: 14px 0 0;
  color: var(--text-muted);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 12px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.16));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #fff;
  background: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 48px rgba(96, 165, 250, 0.52);
  font-size: 34px;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1.6;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.meta-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.56);
}

.meta-grid span,
.compact-card em {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.meta-grid strong {
  display: block;
  margin-top: 4px;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2,
.aside-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
  white-space: pre-line;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(51, 65, 85, 0.86);
}

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

.aside-card {
  padding: 22px;
}

.sticky-card {
  position: sticky;
  top: 88px;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.compact-card:first-of-type {
  border-top: 0;
}

.compact-card img {
  width: 112px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  color: #fff;
  line-height: 1.4;
}

.compact-card:hover strong {
  color: var(--blue-400);
}

.compact-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(37, 99, 235, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.86), rgba(15, 23, 42, 0.98));
  border-top: 1px solid var(--line);
}

.footer-wrap {
  padding-top: 44px;
  padding-bottom: 30px;
}

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

.footer-brand p,
.footer-bottom p {
  color: var(--text-muted);
  line-height: 1.75;
}

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

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

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

.site-footer li {
  margin: 9px 0;
}

.site-footer a {
  color: var(--text-soft);
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .header-search {
    width: 240px;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-search-section,
  .catalog-layout,
  .detail-layout,
  .footer-grid,
  .category-overview-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid-featured,
  .movie-grid-medium,
  .movie-grid-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .sticky-card {
    position: static;
  }

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

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

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

@media (max-width: 640px) {
  .nav-wrap,
  .hero-content,
  .hero-search-section,
  .section-wrap,
  .page-main,
  .footer-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo-text {
    font-size: 17px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    min-height: 76vh;
    padding-top: 76px;
    padding-bottom: 92px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .hero-arrow-left {
    left: 10px;
  }

  .hero-arrow-right {
    right: 10px;
  }

  .hero-actions,
  .quick-links,
  .section-heading-row,
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-search-form div {
    flex-direction: column;
  }

  .movie-grid-featured,
  .movie-grid-medium,
  .movie-grid-small {
    grid-template-columns: 1fr;
  }

  .latest-item {
    flex-direction: column;
  }

  .latest-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .slim-hero,
  .detail-card {
    padding: 22px;
  }

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

  .compact-card img {
    width: 88px;
    height: 56px;
  }
}
