:root {
  --ash-50: #f8f9fa;
  --ash-100: #eef0f2;
  --ash-200: #d8dde2;
  --ash-300: #b8c0c8;
  --ash-400: #8d98a5;
  --ash-500: #66717f;
  --ash-600: #47515c;
  --ash-700: #303842;
  --ash-800: #1c2229;
  --ash-900: #0d0f12;
  --volcanic-50: #fff4ef;
  --volcanic-100: #fdeae1;
  --volcanic-200: #fbd5c3;
  --volcanic-300: #f8bfa5;
  --volcanic-500: #f28a56;
  --volcanic-600: #f07f4a;
  --volcanic-700: #ee692c;
  --volcanic-800: #e84118;
  --volcanic-900: #c03711;
  --lava-50: #fff5e6;
  --lava-100: #ffe6b3;
  --lava-400: #ffb81a;
  --lava-600: #e68a00;
  --shadow-soft: 0 18px 60px rgba(13, 15, 18, 0.12);
  --shadow-card: 0 12px 35px rgba(13, 15, 18, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ash-900);
  background: linear-gradient(180deg, var(--ash-50), #ffffff 42%, var(--volcanic-50));
}

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: linear-gradient(90deg, var(--volcanic-800), var(--volcanic-900));
  box-shadow: 0 12px 35px rgba(192, 55, 17, 0.28);
}

.site-nav {
  width: var(--container);
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--ash-900);
  background: var(--lava-400);
  box-shadow: 0 0 0 8px rgba(255, 184, 26, 0.16), 0 10px 30px rgba(255, 184, 26, 0.35);
  font-size: 16px;
  font-weight: 900;
}

.brand-copy strong,
.footer-logo strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy small,
.footer-logo small {
  display: block;
  margin-top: 2px;
  color: var(--volcanic-100);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  font-weight: 650;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  padding: 26px 0;
  color: #ffffff;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 3px;
  border-radius: 99px;
  background: var(--lava-400);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lava-400);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-link.active {
  color: var(--lava-400);
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--ash-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 15, 18, 0.96), rgba(13, 15, 18, 0.54) 52%, rgba(13, 15, 18, 0.1));
}

.hero-content {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 58px;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.text-panel span,
.detail-kicker,
.category-card-copy span {
  display: inline-flex;
  color: var(--lava-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--ash-200);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--volcanic-900);
  background: var(--lava-100);
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  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(90deg, var(--volcanic-600), var(--volcanic-800));
  box-shadow: 0 14px 34px rgba(232, 65, 24, 0.32);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.ghost.dark {
  color: var(--ash-900);
  background: #ffffff;
  border-color: var(--ash-200);
}

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

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

.hero-dot.is-active {
  background: var(--lava-400);
}

.search-hero,
.content-section,
.category-entry,
.filter-panel,
.category-overview,
.ranking-list-page,
.detail-content,
.player-section {
  width: var(--container);
  margin: 0 auto;
}

.search-hero {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 28px;
  margin-top: -42px;
  position: relative;
  z-index: 5;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.search-hero span {
  color: var(--volcanic-700);
  font-size: 13px;
  font-weight: 800;
}

.search-hero h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 4vw, 38px);
}

.search-form,
.filter-controls {
  display: flex;
  gap: 10px;
}

.search-form input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ash-200);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ash-900);
  background: #ffffff;
  outline: none;
}

.search-form input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--volcanic-600);
  box-shadow: 0 0 0 4px rgba(240, 127, 74, 0.14);
}

.search-form button {
  min-width: 110px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--volcanic-600), var(--volcanic-800));
  font-weight: 800;
  cursor: pointer;
}

.content-section,
.category-entry,
.category-overview,
.ranking-list-page,
.detail-content,
.player-section {
  padding: 70px 0 0;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

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

.small-heading h2 {
  font-size: 28px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(13, 15, 18, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ash-900);
}

.poster-link img,
.compact-card img,
.ranking-poster img,
.rank-item img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.compact-card:hover img,
.ranking-card:hover .ranking-poster img,
.rank-item:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 55%);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--volcanic-700);
  box-shadow: 0 12px 28px rgba(232, 65, 24, 0.42);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.poster-meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 15px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--volcanic-700);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--ash-600);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-entry-grid a {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--volcanic-700), var(--ash-900));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.category-entry-grid a::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 184, 26, 0.22);
}

.category-entry-grid strong {
  font-size: 22px;
}

.category-entry-grid span {
  color: var(--volcanic-100);
  font-size: 13px;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(13, 15, 18, 0.08);
}

.rank-number {
  height: 100%;
  min-height: 82px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-900));
  font-size: 24px;
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 82px;
}

.rank-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.rank-copy small {
  color: var(--ash-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-item em {
  margin-right: 18px;
  color: var(--volcanic-700);
  font-style: normal;
  font-weight: 800;
}

.stacked-categories {
  display: grid;
  gap: 44px;
}

.category-strip {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.compact-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(13, 15, 18, 0.08);
}

.compact-card img {
  aspect-ratio: 3 / 4;
}

.compact-card span,
.compact-card small {
  display: block;
  padding: 0 12px;
}

.compact-card span {
  padding-top: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.compact-card small {
  padding-bottom: 12px;
  margin-top: 4px;
  color: var(--ash-500);
}

.page-hero {
  width: var(--container);
  margin: 34px auto 0;
  min-height: 260px;
  border-radius: var(--radius-xl);
  padding: 54px;
  color: #ffffff;
  background: radial-gradient(circle at 82% 10%, rgba(255, 184, 26, 0.35), transparent 32%), linear-gradient(135deg, var(--ash-900), var(--volcanic-900));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  max-width: 850px;
  margin: 12px 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--ash-200);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 700px);
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.filter-panel p {
  margin: 0;
  color: var(--ash-600);
}

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

.empty-state {
  display: none;
  margin-top: 26px;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--ash-600);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-card-copy h2 {
  margin: 8px 0 12px;
  font-size: 32px;
}

.category-card-copy p {
  color: var(--ash-600);
  line-height: 1.8;
}

.category-card-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 74px 112px 1fr minmax(120px, auto);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-index {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-900));
  font-size: 24px;
  font-weight: 900;
}

.ranking-poster {
  width: 112px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-copy p {
  margin: 0 0 12px;
  color: var(--ash-600);
  line-height: 1.7;
}

.ranking-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--ash-600);
}

.ranking-meta strong {
  color: var(--volcanic-700);
  font-size: 22px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--ash-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--ash-900), rgba(13, 15, 18, 0.65));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 38px 0 58px;
}

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

.breadcrumb a:hover {
  color: var(--lava-400);
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--ash-200);
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  padding-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 24px 80px rgba(13, 15, 18, 0.25);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-900));
  box-shadow: 0 18px 50px rgba(232, 65, 24, 0.4);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 20px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 22px;
  align-items: start;
}

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

.text-panel h2,
.info-panel h2 {
  margin: 10px 0 14px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: var(--ash-700);
  line-height: 1.95;
}

.info-panel dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-panel div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ash-100);
}

.info-panel dt {
  color: var(--ash-500);
}

.info-panel dd {
  margin: 0;
  font-weight: 700;
}

.related-grid {
  grid-template-columns: repeat(6, 1fr);
}

.site-footer {
  margin-top: 78px;
  color: var(--ash-300);
  background: var(--ash-900);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.9fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 560px;
  color: var(--ash-400);
  line-height: 1.8;
}

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

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

.footer-column a {
  color: var(--ash-400);
}

.footer-column a:hover {
  color: var(--lava-400);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ash-500);
  text-align: center;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .site-nav {
    height: 68px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-carousel {
    height: 520px;
  }

  .search-hero,
  .filter-panel,
  .split-section,
  .category-card-large,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-controls,
  .search-form {
    flex-direction: column;
  }

  .feature-grid,
  .movie-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ranking-card {
    grid-template-columns: 54px 88px 1fr;
  }

  .ranking-meta {
    grid-column: 2 / -1;
    justify-items: start;
    display: flex;
    flex-wrap: wrap;
  }

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

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .hero-content {
    bottom: 54px;
  }

  .hero-content p,
  .detail-one-line,
  .page-hero p {
    font-size: 15px;
  }

  .search-hero,
  .page-hero,
  .filter-panel,
  .category-strip,
  .category-card-large,
  .text-panel,
  .info-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .movie-grid,
  .catalog-grid,
  .feature-grid,
  .related-grid,
  .compact-grid,
  .category-entry-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 48px 74px 1fr;
    gap: 10px;
  }

  .rank-item em {
    display: none;
  }

  .rank-item img {
    width: 74px;
    height: 74px;
  }

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

  .player-button-icon {
    width: 68px;
    height: 68px;
  }
}
