:root {
  --purple-900: #4c1d95;
  --purple-800: #5b21b6;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --pink-600: #db2777;
  --pink-500: #ec4899;
  --blue-600: #2563eb;
  --yellow-500: #f59e0b;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.16), 0 8px 10px -6px rgba(15, 23, 42, 0.14);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-800);
  background: #f8f7ff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500), var(--pink-600));
  box-shadow: var(--shadow-md);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-mark span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-size: 1.18rem;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.main-nav a,
.nav-dropdown > a {
  padding: 22px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown:hover > a {
  color: #f3e8ff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 210px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-dropdown-panel a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--gray-700);
  font-size: 0.92rem;
}

.nav-dropdown-panel a:hover {
  color: var(--purple-700);
  background: #faf5ff;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 28vw);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-800);
}

.header-search input {
  min-width: 0;
  padding: 9px 14px;
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-700), var(--pink-600));
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.25);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 1.55rem;
}

.mobile-menu {
  display: none;
  padding: 14px 16px 20px;
  background: var(--purple-800);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  padding: 10px 14px;
}

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

.mobile-menu a {
  color: var(--white);
  padding: 9px 6px;
  border-radius: 10px;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) blur(1px);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(236, 72, 153, 0.36), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(124, 58, 237, 0.5), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(76, 29, 149, 0.72), rgba(15, 23, 42, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 640px;
  color: var(--white);
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #f0abfc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #ede9fe;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 18px 40px rgba(219, 39, 119, 0.35);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.03);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.section-block {
  padding: 54px 0;
}

.intro-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 32px;
  align-items: center;
}

.intro-search h2,
.section-heading h2,
.panel-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.intro-search h2,
.section-heading h2,
.panel-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.intro-search p,
.page-hero p {
  color: var(--gray-600);
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.large-search input {
  padding: 13px 18px;
  background: #faf5ff;
}

.large-search button {
  min-width: 96px;
}

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

.section-heading a,
.panel-more {
  color: var(--purple-700);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

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

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

.play-badge,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow-500), var(--pink-600));
}

.movie-body {
  padding: 16px;
}

.movie-meta {
  color: var(--gray-500);
  font-size: 0.84rem;
  font-weight: 700;
}

.movie-body h3 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-body h3 a:hover,
.ranking-info h2 a:hover {
  color: var(--purple-700);
}

.movie-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  color: var(--purple-700);
  background: #faf5ff;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--purple-700), var(--pink-600));
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card {
  padding: 24px;
  min-height: 168px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.category-card span,
.category-overview-card span {
  color: #f3e8ff;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  margin-top: 26px;
  font-size: 1.32rem;
}

.category-card em {
  margin-top: 8px;
  color: #f5d0fe;
  font-style: normal;
  font-size: 0.9rem;
}

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

.inline-heading {
  margin-bottom: 20px;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.rank-item {
  display: grid;
  grid-template-columns: 30px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.rank-item img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.mini-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: var(--purple-600);
  font-weight: 900;
}

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

.rank-item strong {
  overflow: hidden;
  color: var(--gray-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 0.82rem;
}

.panel-more {
  display: block;
  margin-top: 16px;
  text-align: center;
}

.page-hero {
  padding: 86px 0 74px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.38), transparent 26%),
    linear-gradient(135deg, var(--purple-800), var(--purple-600) 48%, var(--pink-600));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.35rem, 5vw, 4.25rem);
}

.page-hero p {
  max-width: 720px;
  color: #f3e8ff;
  font-size: 1.05rem;
}

.compact-hero {
  padding: 48px 0 44px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.detail-top .breadcrumb {
  color: var(--gray-600);
}

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

.detail-top .breadcrumb a:hover {
  color: var(--purple-700);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.filter-bar input,
.filter-bar select {
  padding: 13px 16px;
  box-shadow: var(--shadow-md);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.category-thumbs img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

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

.category-overview-card p {
  margin: 0;
  color: #f5d0fe;
  font-size: 0.92rem;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
}

.ranking-cover img {
  height: 100%;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--yellow-500), var(--pink-600));
  font-weight: 900;
}

.ranking-info h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 1.32rem;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--gray-600);
}

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  font-weight: 800;
}

.detail-main {
  background: #f8f7ff;
}

.detail-top {
  padding: 28px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gray-950);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.05);
}

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

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding: 44px 0 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  align-self: start;
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-content {
  padding: 30px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-content h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.detail-content h2 {
  margin: 30px 0 12px;
  color: var(--gray-900);
  font-size: 1.35rem;
}

.detail-content p {
  color: var(--gray-700);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--purple-700);
  background: #faf5ff;
  font-weight: 800;
  font-size: 0.9rem;
}

.detail-lead {
  margin: 0 0 18px;
  font-size: 1.06rem;
}

.detail-tags a {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
}

.no-results {
  padding: 34px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.site-footer {
  margin-top: 38px;
  padding: 42px 0 20px;
  color: #ddd6fe;
  background: var(--gray-950);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-grid p {
  max-width: 620px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  font-weight: 800;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a78bfa;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    min-height: 720px;
    padding: 44px 0 70px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    margin: 0 auto;
  }

  .intro-search,
  .detail-layout,
  .ranking-row {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 280px;
  }

  .row-action {
    justify-self: start;
  }
}

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

  .brand-text {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.42rem;
  }

  .section-block {
    padding: 38px 0;
  }

  .large-search,
  .filter-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .large-search,
  .mobile-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .large-search button,
  .mobile-search button {
    width: 100%;
  }

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

  .movie-grid,
  .small-grid,
  .featured-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .player-play {
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
  }

  .detail-content {
    padding: 22px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
