:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #ea580c, #d97706, #ca8a04);
  box-shadow: 0 16px 35px rgba(154, 52, 18, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fef08a;
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-bar input {
  width: 260px;
  border: 0;
  border-radius: 999px;
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 11px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #9a3412;
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

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

.mobile-panel.open {
  display: block;
}

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

.mobile-panel a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #431407;
}

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

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

.hero-bg-image {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: scale(1.1);
  opacity: 0.5;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.96), rgba(146, 64, 14, 0.78), rgba(202, 138, 4, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 430px);
  align-items: center;
  gap: 48px;
  padding: 60px 0;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 20px 0 12px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  color: #fef3c7;
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  padding: 14px 22px;
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  padding: 14px 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ghost-link {
  color: var(--orange-dark);
  background: #fff7ed;
  padding: 12px 18px;
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  display: block;
  padding-top: 132%;
}

.hero-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

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

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

.intro-card,
.side-cta,
.prose-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.intro-card.accent,
.side-cta {
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #d97706);
}

.intro-card h2,
.side-cta h2,
.prose-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
}

.intro-card p,
.side-cta p,
.prose-card p {
  margin: 0;
  color: inherit;
  line-height: 1.8;
}

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

.section-head h2 {
  display: inline-flex;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-icon {
  margin-right: 10px;
  font-size: 30px;
}

.section-more {
  color: var(--orange-dark);
  font-weight: 900;
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7c2d12, #f59e0b);
}

.poster-wrap::before {
  content: "";
  display: block;
  padding-top: 136%;
}

.poster-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card a:hover .poster-wrap img,
.list-card a:hover img,
.category-tile:hover img,
.category-card-large:hover img {
  transform: scale(1.08);
}

.duration-badge,
.rank-badge,
.list-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.78);
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: #ef4444;
  padding: 6px 10px;
}

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

.movie-card h3,
.list-card h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p,
.list-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.meta-row span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 8px;
}

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

.tag-row span {
  color: #c2410c;
  background: #ffedd5;
}

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

.category-tile,
.category-card-large a {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: #7c2d12;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-card-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.category-tile::after,
.category-card-large a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(67, 20, 7, 0.88), rgba(67, 20, 7, 0.12));
}

.category-tile span,
.category-tile p,
.category-card-large div {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  padding: 110px 20px 8px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  padding: 0 20px 22px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.category-card-large div {
  padding: 92px 24px 24px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 950;
}

.category-card-large p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-card-large span {
  font-weight: 900;
  color: #fef3c7;
}

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

.list-grid,
.rank-list,
.related-list {
  display: grid;
  gap: 16px;
}

.list-card a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.list-poster {
  position: relative;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: #fed7aa;
}

.list-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.list-rank {
  left: 8px;
  top: 8px;
  background: #ef4444;
  padding: 5px 8px;
}

.page-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(115deg, #7c2d12, #d97706);
}

.page-hero > div:not(.page-hero-bg) {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  width: min(720px, 100%);
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.page-hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  opacity: 0.36;
  transform: scale(1.08);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.94), rgba(154, 52, 18, 0.7), rgba(202, 138, 4, 0.42));
}

.compact-hero {
  min-height: 300px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.filter-bar input {
  flex: 1;
  width: auto;
  color: var(--text);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--border);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--orange-dark);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), rgba(2, 6, 23, 0.26));
  cursor: pointer;
  z-index: 4;
}

.player-card.is-started .player-overlay {
  display: none;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 22px 45px rgba(249, 115, 22, 0.35);
  font-size: 38px;
  text-indent: 5px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .play-ring {
  transform: scale(1.08);
  background: #ea580c;
}

.player-error {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  color: #fecaca;
  background: rgba(2, 6, 23, 0.92);
  font-size: 18px;
  font-weight: 800;
}

.player-card.is-error .player-error {
  display: flex;
}

.detail-content,
.side-card {
  margin-top: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-content h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 950;
}

.detail-content h2:first-child,
.side-card h2:first-child {
  margin-top: 0;
}

.detail-content p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.lead-text {
  border-left: 5px solid var(--orange);
  border-radius: 16px;
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
  padding: 18px 20px;
  color: #7c2d12 !important;
  font-weight: 700;
}

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

.detail-meta span {
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 800;
}

.detail-tags a {
  color: #c2410c;
  background: #ffedd5;
}

.detail-side {
  position: sticky;
  top: 94px;
}

.poster-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #fed7aa;
}

.poster-card h2 {
  margin: 18px 0 10px;
}

.poster-card p {
  color: var(--muted);
  line-height: 1.75;
}

.related-list .list-card a {
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 10px;
  box-shadow: none;
  background: #f8fafc;
}

.related-list .list-poster {
  height: 76px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  margin-top: 36px;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 20px;
  font-weight: 950;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.footer-grid ul {
  columns: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  padding: 32px 16px;
  overflow: auto;
}

.search-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  padding: 26px;
}

.search-close {
  float: right;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  cursor: pointer;
  font-size: 26px;
}

.search-panel h2 {
  margin: 8px 0 24px;
  font-size: 30px;
  font-weight: 950;
}

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

.search-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  border-radius: 18px;
  background: #f8fafc;
  padding: 10px;
}

.search-item img {
  width: 84px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  background: #fed7aa;
}

.search-item h3 {
  margin: 4px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.search-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hidden-card {
  display: none !important;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-search {
    margin-left: auto;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .top-search {
    display: none;
  }

  .nav-shell {
    height: 62px;
  }

  .brand {
    font-size: 19px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 72px;
  }

  .hero-poster {
    width: min(280px, 82vw);
    margin: 0 auto;
  }

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

  .movie-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .list-card a,
  .related-list .list-card a,
  .search-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .content-section,
  .detail-shell,
  .page-hero > div:not(.page-hero-bg),
  .hero-content,
  .nav-shell,
  .mobile-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1280px);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .ghost-link {
    width: 100%;
  }

  .detail-content,
  .side-card,
  .intro-card,
  .side-cta,
  .prose-card {
    padding: 20px;
  }
}
