:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: #111827;
  --panel-2: #1f2937;
  --panel-3: #263244;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --red: #dc2626;
  --red-2: #ef4444;
  --orange: #f97316;
  --yellow: #facc15;
  --blue: #38bdf8;
  --green: #22c55e;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(220, 38, 38, 0.22), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.16), transparent 32%),
    linear-gradient(180deg, #111827 0%, #030712 46%, #111827 100%);
  color: var(--text);
  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 {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(75, 85, 99, 0.7);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--red-2), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.32);
  font-size: 16px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a,
.mobile-nav a {
  color: #d1d5db;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.catalog-search-form,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.catalog-search,
.search-page-form input {
  width: 230px;
  border: 1px solid rgba(107, 114, 128, 0.9);
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.9);
  color: #fff;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.catalog-search:focus,
.search-page-form input:focus {
  border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
  background: rgba(31, 41, 55, 0.95);
}

.nav-search button,
.mobile-search button,
.catalog-search-form button,
.search-page-form button,
.primary-btn,
.ghost-btn,
.sort-actions button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-search button,
.mobile-search button,
.catalog-search-form button,
.search-page-form button,
.primary-btn {
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.28);
}

.nav-search button:hover,
.mobile-search button:hover,
.catalog-search-form button:hover,
.search-page-form button:hover,
.primary-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px) scale(1.02);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  border-color: rgba(239, 68, 68, 0.9);
  color: #fff;
  background: rgba(220, 38, 38, 0.22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.86);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, #030712 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.38) 100%);
}

.hero-content {
  position: absolute;
  left: max(28px, calc((100% - 1280px) / 2 + 24px));
  right: 28px;
  bottom: 12vh;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 7px 14px;
  font-weight: 850;
  font-size: 14px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d1d5db;
  margin: 24px 0;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-dots {
  position: absolute;
  right: max(24px, calc((100% - 1280px) / 2 + 24px));
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--red);
}

.main-shell,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.main-shell {
  padding: 56px 0;
}

.content-section {
  margin-bottom: 72px;
}

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

.section-heading h2 {
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 930;
  letter-spacing: -0.04em;
}

.section-heading h2 span {
  color: var(--yellow);
}

.section-heading p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
}

.panel-gradient-blue,
.panel-gradient-red {
  border-radius: 28px;
  padding: 34px;
  border: 1px solid var(--line);
}

.panel-gradient-blue {
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.23), rgba(88, 28, 135, 0.20));
}

.panel-gradient-red {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.27), rgba(154, 52, 18, 0.22));
}

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

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

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

.six-cols {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(31, 41, 55, 0.88);
  border: 1px solid rgba(75, 85, 99, 0.48);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.82);
  box-shadow: var(--shadow);
}

.card-link,
.poster-wrap,
.card-body,
.horizontal-card,
.related-card {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img,
.horizontal-poster img,
.rank-poster img,
.related-card img,
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover img,
.horizontal-card:hover img,
.ranking-row:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.badge,
.duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.badge-red {
  top: 10px;
  left: 10px;
  background: var(--red);
}

.duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.38;
  min-height: 47px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover strong,
.horizontal-card:hover strong,
.ranking-row h2 a:hover,
.related-card:hover strong {
  color: var(--red-2);
}

.card-body span {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body small {
  display: block;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.7);
}

.horizontal-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.horizontal-poster {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.horizontal-poster span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.76);
  padding: 4px 9px;
  color: #fff;
  font-size: 12px;
}

.horizontal-info strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-weight: 850;
}

.horizontal-info em {
  display: block;
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
  margin-top: 3px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.62);
  border: 1px solid rgba(75, 85, 99, 0.34);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: rgba(31, 41, 55, 0.92);
  transform: translateY(-2px);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-poster {
  height: 82px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.rank-content h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.rank-content p {
  display: -webkit-box;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-content div {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 13px;
}

.section-more {
  margin-top: 26px;
  text-align: center;
}

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

.category-tile,
.category-overview-block,
.side-card,
.text-card,
.detail-info,
.player-card,
.search-panel {
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.category-tile {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.category-tile span {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 930;
}

.category-tile p {
  color: #d1d5db;
  margin: 10px 0 18px;
}

.category-tile ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.tone-red,
.tone-rose,
.tone-orange {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.48), rgba(154, 52, 18, 0.22));
}

.tone-purple,
.tone-violet,
.tone-indigo {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.42), rgba(30, 41, 59, 0.25));
}

.tone-gold {
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.42), rgba(113, 63, 18, 0.22));
}

.tone-cyan,
.tone-blue {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.38), rgba(30, 64, 175, 0.22));
}

.tone-green {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.34), rgba(22, 78, 99, 0.18));
}

.tone-pink {
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.34), rgba(88, 28, 135, 0.20));
}

.tone-slate,
.tone-default {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.54), rgba(15, 23, 42, 0.24));
}

.page-hero {
  border-bottom: 1px solid rgba(75, 85, 99, 0.42);
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.category-overview {
  display: grid;
  gap: 30px;
}

.category-overview-block {
  padding: 28px;
  border-radius: 28px;
}

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

.category-overview-head h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.category-overview-head p {
  margin: 6px 0 0;
  color: #d1d5db;
}

.compact-grid .movie-card .card-body span,
.compact-grid .movie-card .card-body small {
  display: none;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.66);
  border: 1px solid var(--line);
}

.catalog-search {
  width: min(440px, 58vw);
}

.sort-actions {
  display: flex;
  gap: 8px;
}

.sort-actions button {
  padding: 10px 16px;
  color: #d1d5db;
  background: rgba(31, 41, 55, 0.92);
}

.sort-actions button.is-active,
.sort-actions button:hover {
  color: #fff;
  background: var(--red);
}

.detail-shell {
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--red-2);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.82fr);
  gap: 28px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card,
.detail-info,
.text-card,
.side-card {
  border-radius: 22px;
  overflow: hidden;
}

.player-card {
  padding: 0;
  background: #000;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 55px rgba(220, 38, 38, 0.42);
  font-size: 34px;
  padding-left: 6px;
}

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

.player-loading {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
}

.player-loading span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-info,
.text-card,
.side-card,
.search-panel {
  padding: 24px;
  background: rgba(31, 41, 55, 0.86);
}

.detail-info h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #d1d5db;
  padding: 7px 12px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(75, 85, 99, 0.58);
  font-size: 14px;
}

.tag-row {
  margin-top: 18px;
}

.tag-row a {
  color: #fff;
  background: var(--red);
  border-color: transparent;
}

.text-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #111827;
  overflow: hidden;
  object-fit: cover;
}

.poster-side h2 {
  margin-top: 16px;
}

.poster-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.related-card img {
  height: 70px;
  border-radius: 12px;
  background: #111827;
}

.related-card strong {
  display: -webkit-box;
  color: #fff;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

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

.ranking-page .ranking-row {
  grid-template-columns: 64px 172px minmax(0, 1fr);
}

.ranking-page .rank-poster {
  height: 104px;
}

.search-panel {
  border-radius: 28px;
}

.search-page-form {
  margin-bottom: 22px;
}

.search-page-form input {
  width: min(680px, 70vw);
  padding: 13px 18px;
}

.search-summary {
  min-height: 26px;
  color: var(--muted);
  margin-bottom: 22px;
}

.site-footer {
  border-top: 1px solid rgba(75, 85, 99, 0.5);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), #000);
  color: var(--muted);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 30px;
}

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

.footer-grid p {
  margin: 12px 0 0;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: var(--red-2);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  color: var(--muted-2);
  border-top: 1px solid rgba(75, 85, 99, 0.28);
  font-size: 14px;
}

.is-hidden-by-filter {
  display: none !important;
}

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

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

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

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

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

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

@media (max-width: 820px) {
  .hero {
    min-height: 76vh;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 96px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
  }

  .section-heading,
  .category-overview-head,
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-grid,
  .three-cols,
  .four-cols,
  .six-cols,
  .category-grid,
  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-row,
  .ranking-page .ranking-row {
    grid-template-columns: 46px 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ranking-page .rank-poster,
  .rank-poster {
    height: 72px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .panel-gradient-blue,
  .panel-gradient-red,
  .category-overview-block {
    padding: 22px;
  }

  .catalog-search,
  .search-page-form input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 22px, 1280px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-shell,
  .detail-shell,
  .page-hero > div {
    width: min(100% - 22px, 1280px);
  }

  .main-shell {
    padding: 36px 0;
  }

  .movie-grid,
  .ranking-grid,
  .three-cols,
  .four-cols,
  .six-cols,
  .category-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .card-body strong {
    min-height: auto;
  }

  .related-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
