:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: #0b1020;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(17, 24, 39, 0.94);
  --line: rgba(34, 211, 238, 0.22);
  --line-strong: rgba(34, 211, 238, 0.44);
  --text: #e5eefc;
  --muted: #9ca3af;
  --cyan: #22d3ee;
  --cyan-deep: #06b6d4;
  --pink: #f472b6;
  --purple: #8b5cf6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.22), transparent 35rem),
    radial-gradient(circle at 90% 8%, rgba(244, 114, 182, 0.18), transparent 30rem),
    linear-gradient(180deg, #050816 0%, #0b1020 44%, #050816 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(244, 114, 182, 0.12));
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.32);
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: #d1d5db;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
}

.header-search input,
.mobile-search input,
.filter-search input,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  outline: none;
  background: rgba(17, 24, 39, 0.7);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  padding: 11px 44px 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.search-page-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.74);
  color: var(--cyan);
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
}

.mobile-menu.is-open {
  display: grid;
  gap: 14px;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

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

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: #fff;
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.94) 0%, rgba(5, 8, 22, 0.72) 43%, rgba(5, 8, 22, 0.24) 100%),
    linear-gradient(0deg, #050816 0%, transparent 42%),
    radial-gradient(circle at 24% 50%, rgba(34, 211, 238, 0.3), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 126px 0 120px;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--pink));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.22);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.7;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta span,
.detail-meta span {
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #d1d5db;
  padding: 8px 13px;
}

.hero-actions,
.detail-info .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-deep), var(--pink));
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(15, 23, 42, 0.58);
  color: var(--cyan);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.64);
  padding: 10px 12px;
  backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.13);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(209, 213, 219, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

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

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--cyan);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card,
.content-card,
.ranking-panel,
.filter-panel,
.search-page-form {
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 18px;
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.9));
}

.category-tile span,
.category-overview-card h2 {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

.category-tile strong {
  display: inline-flex;
  margin-top: 8px;
  color: var(--cyan);
}

.category-tile em,
.category-overview-card p {
  display: block;
  margin-top: 34px;
  color: #d1d5db;
  font-style: normal;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 26px 70px rgba(34, 211, 238, 0.16);
}

.movie-link {
  display: grid;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.8);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
  filter: brightness(0.88);
}

.poster-year,
.poster-play {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.poster-year {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  background: rgba(5, 8, 22, 0.78);
}

.poster-play {
  right: 10px;
  bottom: 10px;
  padding: 7px 11px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--pink));
  box-shadow: 0 14px 30px rgba(244, 114, 182, 0.26);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

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

.movie-info p {
  margin: 0;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-size: 12px;
  padding: 5px 8px;
}

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

.ranking-panel,
.filter-panel,
.search-page-form {
  border-radius: var(--radius);
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title span {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 950;
}

.panel-title a {
  color: var(--pink);
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  padding: 10px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.rank-num {
  color: var(--pink);
  font-size: 22px;
  font-weight: 950;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text {
  min-width: 0;
}

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

.rank-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 56px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  background:
    radial-gradient(circle at 16% 20%, rgba(34, 211, 238, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 0%, rgba(244, 114, 182, 0.17), transparent 26rem);
}

.page-hero p {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-thumbs img {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.category-overview-card span {
  color: var(--cyan);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-search {
  position: relative;
}

.filter-search input {
  padding: 13px 16px;
}

.filter-search span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #d1d5db;
  cursor: pointer;
  padding: 8px 12px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.filter-chips button:hover,
.filter-chips .chip-active {
  border-color: rgba(34, 211, 238, 0.56);
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 72px 0 56px;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) brightness(0.38) saturate(1.18);
  transform: scale(1.06);
}

.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.96), rgba(5, 8, 22, 0.7), rgba(5, 8, 22, 0.38)),
    linear-gradient(0deg, var(--bg), transparent 48%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 72px);
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.7;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 15rem),
    rgba(5, 8, 22, 0.28);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-triangle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 18px 52px rgba(244, 114, 182, 0.3);
  position: relative;
}

.play-triangle::after {
  position: absolute;
  left: 37px;
  top: 29px;
  content: "";
  border-left: 24px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.play-button strong {
  font-size: 20px;
  letter-spacing: 0.05em;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  border-radius: var(--radius);
  padding: 24px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.9;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 20px;
}

.search-page-form input {
  padding: 0 18px;
}

.search-status {
  margin: 0 0 20px;
  color: var(--muted);
}

.mini-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
  padding: 10px;
}

.mini-card img {
  width: 64px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

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

.mini-card em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(5, 8, 22, 0.86);
  padding: 44px 0;
}

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

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

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

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

  .header-inner {
    min-height: 68px;
  }

  .brand-sub {
    display: none;
  }

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

  .hero-content {
    padding: 104px 0 110px;
  }

  .hero-controls {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 28px;
  }

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

  .overview-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-text {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-content p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

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

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

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

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

  .detail-poster {
    width: min(240px, 76vw);
  }

  .filter-search span {
    position: static;
    display: block;
    transform: none;
    margin-top: 8px;
  }

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

  .search-page-form input {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .movie-card.compact .poster-wrap {
    aspect-ratio: 16 / 10;
  }
}
