:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f8fafc;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.brand__text {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: #e5e7eb;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-400);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(390px, 34vw);
  margin-left: auto;
  padding: 6px;
  background: rgba(51, 65, 85, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.header-search input,
.mobile-nav input {
  width: 100%;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 7px 12px;
}

.header-search input::placeholder,
.mobile-nav input::placeholder {
  color: #94a3b8;
}

.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--slate-950);
  background: var(--amber-400);
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: var(--slate-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-nav form {
  background: var(--slate-700);
  border-radius: 999px;
}

.hero {
  position: relative;
  height: clamp(540px, 68vh, 720px);
  min-height: 540px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.025);
  background-position: center;
  background-size: cover;
  transition: opacity 0.5s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, var(--slate-950), transparent);
  pointer-events: none;
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  color: var(--white);
}

.hero-slide__copy {
  max-width: 760px;
}

.hero-kicker,
.section-heading p,
.ranking-panel__head p,
.page-hero p:first-child {
  margin: 0 0 12px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-slide h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.1vw, 22px);
}

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.button--primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.button--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button--text {
  color: var(--amber-300);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  background: var(--slate-800);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 12px;
  color: var(--slate-950);
  background: var(--amber-400);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  border: 0;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

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

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

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

.hero-dots button {
  width: 34px;
  height: 5px;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  border: 0;
  border-radius: 999px;
}

.hero-dots button.is-active {
  background: var(--amber-400);
}

.section {
  padding: 76px 0;
}

.section--lifted {
  position: relative;
  margin-top: -56px;
  z-index: 6;
}

.section--dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-950));
}

.section--muted {
  background: var(--gray-100);
}

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

.section-heading h2,
.ranking-panel__head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.section-heading--dark h2,
.ranking-panel__head h2 {
  color: var(--white);
}

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

.section-heading--dark a {
  color: var(--amber-300);
}

.section-heading--inline {
  width: 100%;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card__poster {
  position: relative;
  overflow: hidden;
  background: var(--slate-800);
}

.movie-card__poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card__link:hover .movie-card__poster img {
  transform: scale(1.07);
}

.movie-card__quality,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 26px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-card__quality {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
}

.movie-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.movie-card__meta {
  margin: 0 0 7px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card__link:hover h3 {
  color: var(--amber-600);
}

.movie-card__desc {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card__tags {
  margin-top: auto;
}

.movie-card__tags span {
  display: inline-flex;
  padding: 3px 9px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  padding: 24px;
  color: var(--white);
  background-color: var(--slate-900);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.1));
}

.category-tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  color: var(--slate-950);
  background: var(--amber-400);
  border-radius: 16px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 24px;
  font-size: 22px;
}

.category-tile em {
  color: var(--amber-300);
  font-style: normal;
  font-weight: 800;
}

.category-tile small {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #d1d5db;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-panel,
.side-card,
.content-card,
.filter-panel,
.ranking-page {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.rank-row__link {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: inherit;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row__link:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateX(4px);
}

.rank-row__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--slate-950);
  background: var(--amber-400);
  border-radius: 12px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  background: var(--slate-800);
  border-radius: 10px;
}

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

.rank-row__content strong,
.rank-row__content em,
.rank-row__content small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row__content strong {
  font-size: 15px;
  font-weight: 900;
}

.rank-row__content em {
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
}

.rank-row__content small {
  color: #94a3b8;
  font-size: 12px;
}

.ranking-list--page .rank-row__link {
  grid-template-columns: 54px 78px minmax(0, 1fr);
  color: var(--gray-900);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-list--page .rank-row img {
  width: 78px;
  height: 104px;
}

.ranking-list--page .rank-row__content em,
.ranking-list--page .rank-row__content small {
  color: var(--gray-600);
}

.page-main {
  min-height: 68vh;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero > .container {
  padding: 86px 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p:last-child,
.page-hero > .container > p:nth-child(3) {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

.page-hero--small > .container {
  padding: 72px 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
}

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

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.filter-panel button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: var(--slate-900);
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

.result-count {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--gray-600);
  font-weight: 700;
}

.detail-hero {
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  background: var(--slate-800);
}

.detail-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 12px;
  color: var(--slate-950);
  background: var(--amber-400);
  border-radius: 999px;
  font-weight: 900;
}

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

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-meta span,
.detail-meta a {
  padding: 5px 11px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta a {
  color: var(--amber-300);
}

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

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.72));
  border: 0;
  z-index: 3;
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--slate-950);
  background: var(--amber-400);
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.38);
}

.player-overlay strong {
  max-width: min(80%, 680px);
  font-size: clamp(22px, 4vw, 42px);
  text-align: center;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

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

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
}

.content-card p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
}

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

.side-links a {
  display: block;
  padding: 10px 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.side-links a:hover {
  color: #92400e;
  background: #fef3c7;
}

.site-footer {
  padding-top: 54px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), #000000);
}

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

.brand--footer {
  margin-bottom: 14px;
  color: var(--white);
}

.site-footer p {
  max-width: 470px;
  margin: 0;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

.footer-bottom {
  margin-top: 38px;
  padding: 18px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 650px;
    padding: 82px 0 96px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-slide__inner,
  .detail-hero__grid {
    grid-template-columns: 1fr;
  }

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

  .hero-arrow {
    top: auto;
    bottom: 28px;
    transform: none;
  }

  .hero-arrow--prev {
    left: 18px;
  }

  .hero-arrow--next {
    right: 18px;
  }

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

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

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

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

  .section {
    padding: 54px 0;
  }

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

  .hero-slide {
    min-height: 720px;
  }

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

  .hero-actions,
  .detail-actions,
  .page-hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .movie-card__body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

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

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

  .rank-row__link,
  .ranking-list--page .rank-row__link {
    grid-template-columns: 38px 60px minmax(0, 1fr);
  }

  .ranking-list--page .rank-row img {
    width: 60px;
    height: 82px;
  }

  .detail-hero__grid {
    padding: 48px 0;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .detail-side,
  .content-card {
    gap: 14px;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }
}
