:root {
  --page-bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --dark: #0f172a;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 42px rgba(15, 23, 42, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(100% - 32px, var(--wrap));
  min-height: 72px;
  margin: 0 auto;
  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: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.brand__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.brand__text strong,
.brand__text em {
  display: block;
  font-style: normal;
}

.brand__text strong {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brand__text em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

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

.nav-link--sub {
  color: #4b5563;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

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

.hero {
  position: relative;
  min-height: 620px;
  height: 72vh;
  overflow: hidden;
  background: var(--dark);
}

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

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

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 32%, rgba(59, 130, 246, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.28));
}

.hero-slide__content {
  position: relative;
  width: min(100% - 32px, var(--wrap));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1120px;
  color: #ffffff;
  padding: 44px 0 110px;
}

.hero-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-slide h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero-slide p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2.2vw, 21px);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.movie-card__meta span,
.list-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.button--primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #3b82f6);
}

.button--light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.detail-actions .button--light {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: transparent;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(37, 99, 235, 0.86);
}

.hero-arrow--prev {
  left: max(18px, calc((100vw - var(--wrap)) / 2 - 74px));
}

.hero-arrow--next {
  right: max(18px, calc((100vw - var(--wrap)) / 2 - 74px));
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.hero-search,
.page-search {
  position: absolute;
  left: 50%;
  bottom: 78px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(720px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input,
.page-search input,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 13px;
  outline: 0;
  color: var(--text);
  background: #ffffff;
  padding: 0 14px;
}

.hero-search input:focus,
.page-search input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.hero-search button,
.page-search button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  background: var(--primary);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.page-wrap {
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto;
}

.page-wrap--spaced {
  display: grid;
  gap: 54px;
}

.page-wrap--top {
  padding: 34px 0 70px;
}

.section-block {
  min-width: 0;
}

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

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

.section-heading a {
  color: var(--primary);
  font-weight: 800;
}

.featured-grid,
.movie-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-grid--catalog {
  margin-top: 24px;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-card--featured .movie-card__poster {
  aspect-ratio: 16 / 9;
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

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

.movie-card__badge,
.movie-card__year {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.movie-card__badge {
  top: 10px;
  right: 10px;
}

.movie-card__year {
  left: 10px;
  bottom: 10px;
}

.movie-card__body {
  padding: 14px;
}

.movie-card__body h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card__body h3 a:hover {
  color: var(--primary);
}

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

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #4b5563;
}

.movie-card__meta span {
  background: #f3f4f6;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 4px 4px 20px;
}

.movie-rail .movie-card {
  flex: 0 0 220px;
}

.rail-actions {
  display: flex;
  gap: 10px;
}

.rail-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.rail-actions button:hover {
  color: #ffffff;
  background: var(--primary);
}

.list-stack {
  display: grid;
  gap: 14px;
}

.list-stack--tight {
  gap: 10px;
}

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

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

.list-card__cover {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
}

.list-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
}

.list-card__top a:hover {
  color: var(--primary);
}

.rank-number {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  font-size: 12px;
  font-weight: 900;
}

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

.list-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #4b5563;
}

.list-card__meta span {
  background: #f3f4f6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.split-aside {
  position: sticky;
  top: 96px;
}

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

.category-tile {
  display: grid;
  min-height: 150px;
  align-content: end;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #1d4ed8, #0f172a);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 20%, rgba(96, 165, 250, 0.52), transparent 30%),
    linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: var(--shadow-md);
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.page-search {
  position: static;
  width: min(620px, 100%);
  margin-top: 28px;
  transform: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background: #e5e7eb;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.detail-lead {
  margin: 20px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.detail-meta span {
  color: #374151;
  background: #f3f4f6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  scroll-margin-top: 90px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.78));
  cursor: pointer;
}

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

.player-cover__icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.95);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.38);
  font-size: 34px;
}

.player-cover__title {
  max-width: 80%;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 900;
  text-align: center;
}

.player-cover__text {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.prose-block {
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.prose-block h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.prose-block h2:not(:first-child) {
  margin-top: 34px;
}

.prose-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.filter-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
}

.filter-row--wide {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  border-color: var(--line);
  background: #f9fafb;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: #f9fafb;
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-overview-card__title {
  display: inline-flex;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.category-overview-card__title:hover {
  color: var(--primary);
}

.category-overview-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.category-overview-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-overview-card__links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 800;
}

.ranking-stack .list-card {
  grid-template-columns: 120px 1fr;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #0f172a;
}

.site-footer__inner {
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #9ca3af;
}

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

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

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

.footer-links a:hover {
  color: #60a5fa;
}

.site-footer__bottom {
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .split-aside {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide__content {
    padding: 92px 0 150px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    bottom: 72px;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid--related,
  .category-overview-grid,
  .site-footer__inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .movie-card__poster {
    aspect-ratio: 16 / 11;
  }

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

  .filter-row,
  .filter-row--wide {
    grid-template-columns: 1fr;
  }

  .list-card,
  .ranking-stack .list-card {
    grid-template-columns: 108px 1fr;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: 64px;
  }

  .brand__icon {
    width: 38px;
    height: 38px;
  }

  .brand__text strong {
    font-size: 19px;
  }

  .hero-slide h1 {
    font-size: 38px;
  }

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

  .hero-search button,
  .page-search button {
    width: 100%;
  }

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

  .movie-grid--catalog {
    grid-template-columns: 1fr;
  }

  .list-card,
  .ranking-stack .list-card {
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .list-card__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
  }

  .list-card p {
    -webkit-line-clamp: 1;
  }

  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }
}
