:root {
  --space-dark: #0a0e27;
  --space-blue: #1a2332;
  --space-navy: #2d3e50;
  --star-silver: #c5d0de;
  --star-gold: #f4c430;
  --nebula-cyan: #4a9eff;
  --nebula-teal: #00d4aa;
  --cosmic-orange: #ff6b35;
  --text-primary: #e8eef5;
  --text-secondary: #a8b5c7;
  --text-muted: #6b7b8c;
  --card-bg: rgba(26, 35, 50, 0.92);
  --border-soft: rgba(197, 208, 222, 0.12);
  --shadow-strong: 0 25px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--space-dark);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--nebula-cyan), var(--nebula-teal));
  box-shadow: 0 12px 30px rgba(74, 158, 255, 0.25);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--nebula-cyan), var(--nebula-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

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

.nav-link {
  color: var(--star-silver);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: rgba(26, 35, 50, 0.9);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--star-silver);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(55, 65, 81, 0.85);
  background: rgba(26, 35, 50, 0.98);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 8px;
  padding: 16px 0;
}

.mobile-nav-link {
  padding: 10px 4px;
  color: var(--star-silver);
  font-weight: 600;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(74, 158, 255, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(10, 14, 39, 0.98) 0%, rgba(10, 14, 39, 0.82) 40%, rgba(10, 14, 39, 0.25) 100%),
    linear-gradient(0deg, var(--space-dark) 0%, rgba(10, 14, 39, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 72vh;
  padding: 90px 0 86px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--star-gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero-description {
  width: min(680px, 100%);
  margin: 22px 0 0;
  color: var(--star-silver);
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: var(--text-secondary);
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(197, 208, 222, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--text-secondary);
  background: rgba(26, 35, 50, 0.85);
  border: 1px solid rgba(197, 208, 222, 0.12);
  font-size: 0.82rem;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--nebula-cyan), var(--nebula-teal));
  box-shadow: 0 18px 40px rgba(74, 158, 255, 0.25);
}

.ghost-button {
  color: var(--text-primary);
  border: 1px solid rgba(197, 208, 222, 0.18);
  background: rgba(26, 35, 50, 0.72);
  backdrop-filter: blur(10px);
}

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

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 72px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(74, 158, 255, 0.75);
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(197, 208, 222, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
  background: var(--space-dark);
}

.section-dark {
  background: linear-gradient(180deg, var(--space-dark), var(--space-blue));
}

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

.section-heading h2,
.intro-grid h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  background: linear-gradient(90deg, var(--nebula-cyan), var(--nebula-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-more,
.quick-links a {
  color: var(--nebula-cyan);
  font-weight: 700;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(26, 35, 50, 0.78);
  border: 1px solid rgba(197, 208, 222, 0.12);
}

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

.category-tile {
  min-height: 168px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(74, 158, 255, 0.20), transparent 42%),
    var(--card-bg);
  border: 1px solid var(--border-soft);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 158, 255, 0.45);
  box-shadow: var(--shadow-strong);
}

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

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--nebula-cyan), var(--nebula-teal));
}

.category-tile strong {
  font-size: 1.08rem;
  color: var(--text-primary);
}

.category-tile em {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: normal;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid rgba(197, 208, 222, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(74, 158, 255, 0.38);
  box-shadow: var(--shadow-strong);
}

.movie-card-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.poster-wrap {
  position: relative;
  height: 278px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(0, 212, 170, 0.12)),
    var(--space-blue);
}

.movie-card.is-small .poster-wrap {
  height: 214px;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 0.9;
}

.poster-region,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
}

.poster-region {
  top: 12px;
  left: 12px;
}

.poster-year {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--cosmic-orange), var(--star-gold));
}

.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(74, 158, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--nebula-cyan);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.movie-line {
  display: -webkit-box;
  min-height: 3.9em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(197, 208, 222, 0.12);
  border-radius: 18px;
  background: rgba(26, 35, 50, 0.72);
}

.search-label {
  color: var(--text-primary);
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(520px, 100%);
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(197, 208, 222, 0.14);
  border-radius: 14px;
  background: rgba(10, 14, 39, 0.88);
}

.search-box input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
}

.search-box span {
  color: var(--nebula-cyan);
  font-size: 1.2rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(197, 208, 222, 0.14);
  border-radius: 999px;
  color: var(--star-silver);
  background: rgba(26, 35, 50, 0.78);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  border-color: rgba(74, 158, 255, 0.55);
  background: linear-gradient(90deg, rgba(74, 158, 255, 0.75), rgba(0, 212, 170, 0.75));
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 78px;
  background:
    radial-gradient(circle at 75% 20%, rgba(74, 158, 255, 0.22), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.16), transparent 32%),
    linear-gradient(180deg, var(--space-blue), var(--space-dark));
}

.slim-hero,
.catalog-hero {
  padding-bottom: 66px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

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

.category-card-large {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid rgba(197, 208, 222, 0.12);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-card-large:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 158, 255, 0.42);
  box-shadow: var(--shadow-strong);
}

.category-card-large a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 220px;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--space-dark);
}

.category-poster-stack img {
  width: 100%;
  height: 109px;
  object-fit: cover;
}

.category-card-body {
  padding: 26px;
}

.category-card-body h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.category-card-body p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

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

.catalog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.catalog-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(197, 208, 222, 0.12);
  border-radius: 14px;
  background: rgba(26, 35, 50, 0.78);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.catalog-list li a:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 158, 255, 0.45);
}

.catalog-list span {
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-list em {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.82rem;
}

.detail-section {
  padding: 34px 0 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(74, 158, 255, 0.18), transparent 36%),
    var(--space-dark);
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197, 208, 222, 0.12);
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nebula-cyan), var(--nebula-teal));
  box-shadow: 0 20px 50px rgba(74, 158, 255, 0.35);
}

.detail-copy,
.content-card,
.side-card {
  border: 1px solid rgba(197, 208, 222, 0.12);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.detail-one-line {
  margin: 18px 0 0;
  color: var(--nebula-cyan);
  font-size: 1.16rem;
}

.detail-tags {
  margin-top: 18px;
}

.content-card {
  padding: 28px;
}

.content-card h2,
.side-card h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.content-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.side-card {
  padding: 22px;
}

.poster-side {
  padding: 0;
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(197, 208, 222, 0.1);
}

.info-list dt {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.info-list dd {
  margin: 0;
  color: var(--text-primary);
}

.related-section {
  padding-top: 32px;
}

.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  background: var(--space-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  padding: 58px 0;
}

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

.footer-brand-block p,
.footer-links a,
.footer-bottom {
  color: var(--text-secondary);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: 1.05rem;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(197, 208, 222, 0.1);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

[hidden],
.is-filtered-out {
  display: none !important;
}

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

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

  .detail-sidebar {
    grid-template-columns: 260px 1fr;
  }
}

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

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

  .hero,
  .hero-content {
    min-height: 78vh;
  }

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

  .hero-controls {
    right: 18px;
    bottom: 56px;
  }

  .section-heading,
  .intro-grid,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-links {
    justify-content: flex-start;
  }

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

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

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

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-subtitle {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .hero-controls {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

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

  .poster-wrap,
  .movie-card.is-small .poster-wrap {
    height: 190px;
  }

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

  .movie-line {
    display: none;
  }

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

  .category-poster-stack {
    height: 190px;
  }

  .category-poster-stack img {
    height: 94px;
  }

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