:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --pink-50: #fdf2f8;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 16px 45px rgba(88, 28, 135, 0.14);
  --shadow-card: 0 10px 25px rgba(17, 24, 39, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple-700);
  background: linear-gradient(135deg, var(--purple-100), var(--pink-50));
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.18);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--gray-600);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--purple-700);
  background: var(--purple-50);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--purple-50);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--purple-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 720px;
  margin-top: var(--header-height);
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-900), #2e1065 50%, var(--pink-600));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 25% 20%, rgba(236, 72, 153, 0.55), transparent 32%), linear-gradient(135deg, var(--purple-900), #111827);
}

.hero-bg img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero-bg.no-img::after,
.poster-shell.no-img::after,
.rank-poster.no-img::after,
.category-poster.no-img::after,
.detail-backdrop.no-img::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-700), var(--pink-600));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 135, 0.72), rgba(17, 24, 39, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  padding: 72px 0 120px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--purple-200);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: #fdf2f8;
}

.hero-content p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-tags,
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-tags span,
.rank-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  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: #ffffff;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.28);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

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

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.quick-search-wrap {
  width: min(920px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 8;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 15px;
  color: var(--gray-900);
  background: #ffffff;
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
}

.quick-search button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  font-weight: 800;
  cursor: pointer;
}

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

.narrow-section {
  width: min(920px, calc(100% - 32px));
}

.gradient-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, var(--purple-50), var(--pink-50));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.eyebrow {
  color: var(--purple-600);
}

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

.category-tile {
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius-md);
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 34%), linear-gradient(135deg, var(--purple-700), var(--pink-600));
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-tile span,
.category-tile strong,
.category-tile small {
  display: block;
}

.category-tile span {
  font-size: 0.9rem;
  color: var(--purple-100);
  font-weight: 800;
}

.category-tile strong {
  margin-top: 20px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-shell,
.rank-poster,
.category-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-700), var(--pink-600));
}

.poster-shell {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-shell img,
.rank-item:hover .rank-poster img,
.category-card-large:hover .category-poster img {
  transform: scale(1.06);
}

.card-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0;
  min-height: 2.8em;
  font-size: 1.05rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--purple-700);
  background: var(--purple-50);
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card-body p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}

.compact-card .movie-card-body h3 {
  min-height: auto;
  font-size: 0.98rem;
}

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

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.mini-rank-list,
.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-poster {
  width: 70px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.rank-number {
  color: var(--purple-600);
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-info h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.rank-info p {
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.rank-tags {
  margin-top: 10px;
}

.rank-tags span {
  color: var(--purple-700);
  background: var(--purple-50);
  border-color: var(--purple-100);
}

.page-main {
  padding-top: var(--header-height);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 62px;
  border-radius: 32px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.55), transparent 36%), linear-gradient(135deg, var(--purple-800), var(--purple-900));
  box-shadow: var(--shadow-soft);
}

.soft-hero,
.category-hero,
.search-hero,
.rank-hero {
  min-height: 260px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-poster {
  width: 112px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.category-copy strong,
.category-copy small {
  display: block;
}

.category-copy strong {
  font-size: 1.2rem;
  line-height: 1.25;
}

.category-copy small {
  margin-top: 8px;
  color: var(--gray-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 160px;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-link {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  font-weight: 800;
}

.page-link.active,
.page-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
}

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  padding-top: var(--header-height);
  overflow: hidden;
  color: #ffffff;
  background: var(--purple-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-900), var(--pink-600));
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(88, 28, 135, 0.78), rgba(17, 24, 39, 0.48));
}

.detail-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

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

.detail-poster {
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

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

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 12px;
  padding: 0;
  margin: 24px 0 30px;
  list-style: none;
}

.detail-meta-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.detail-meta-list span,
.detail-meta-list strong {
  display: block;
}

.detail-meta-list span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.detail-meta-list strong {
  margin-top: 2px;
}

.player-section {
  margin-top: -90px;
  position: relative;
  z-index: 4;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.28), rgba(17, 24, 39, 0.7));
  cursor: pointer;
  z-index: 3;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.3rem;
}

.detail-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.article-card p {
  margin: 0;
  color: var(--gray-600);
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-900), #3b0764 58%, #831843);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 370px;
  color: var(--purple-200);
}

.footer-logo {
  font-size: 1.2rem;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a,
.footer-bottom {
  color: var(--purple-200);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

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

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

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

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

  .split-section,
  .detail-layout,
  .detail-text-section,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 42px 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 66px;
  }

  .nav-wrap {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 104px;
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
  }

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

  .section {
    padding: 52px 0;
  }

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

  .category-card-large,
  .rank-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .rank-item .rank-number {
    display: none;
  }

  .detail-meta-list {
    grid-template-columns: 1fr;
  }

  .player-section {
    margin-top: -54px;
  }

  .player-card {
    border-radius: 20px;
  }
}
