:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-900: #7c2d12;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--slate-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1e293b, #78350f);
  color: transparent;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.nav-drop-button {
  border: 0;
  color: #e2e8f0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: #e2e8f0;
}

.nav-drop-panel a:hover {
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber-400);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--slate-950);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 108px 0 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-badge,
.section-kicker,
.card-meta,
.breadcrumbs,
.category-overview-head p,
.rank-item p:first-child {
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 900px;
  margin: 12px 0 20px;
  color: var(--white);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 34px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.button-primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.32);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.button-subtle {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.26);
}

.hero-search-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.hero-search,
.inline-search,
.filter-bar {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

.hero-search {
  padding: 18px;
}

.hero-search label {
  display: block;
  margin: 0 0 9px;
  color: #f8fafc;
  font-weight: 800;
}

.hero-search div,
.inline-search,
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-search input,
.inline-search input,
.filter-bar input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: none;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.95);
}

.hero-search button,
.inline-search button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: var(--slate-950);
  background: var(--amber-400);
  font-weight: 900;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

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

.hero-dot.is-active {
  width: 36px;
  background: var(--amber-400);
}

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

.soft-panel {
  width: min(1220px, calc(100% - 20px));
  padding: 70px 20px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-soft);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--slate-600);
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--amber-600);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  font-weight: 800;
}

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

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

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

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

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.42), transparent 30%),
    linear-gradient(135deg, var(--slate-900), var(--orange-900));
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

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

.movie-card h3 {
  margin: 6px 0 8px;
  color: var(--slate-950);
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--amber-600);
}

.card-meta {
  margin: 0;
  color: var(--amber-600);
  letter-spacing: 0.06em;
}

.card-line {
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card.compact h3 {
  font-size: 16px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--slate-900), #172554 58%, var(--orange-900));
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.category-tile {
  min-height: 240px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.26);
}

.tile-glow {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.28);
  filter: blur(6px);
}

.category-tile strong {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 26px;
  margin-bottom: 12px;
}

.category-tile em {
  display: block;
  position: relative;
  z-index: 2;
  color: #cbd5e1;
  font-style: normal;
}

.tile-posters {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.tile-posters img {
  width: 46px;
  height: 68px;
  object-fit: cover;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800), var(--orange-900));
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

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

.page-hero p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
}

.slim-hero {
  min-height: 320px;
}

.inline-search {
  width: min(720px, 100%);
  margin-top: 26px;
  padding: 14px;
}

.filter-bar {
  margin-bottom: 24px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.filter-bar span {
  color: var(--slate-900);
  font-weight: 900;
}

.wide-filter {
  width: 100%;
}

.category-overview-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--slate-900);
}

.category-overview-head h2 {
  margin: 3px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.category-overview-head span {
  display: block;
  color: var(--slate-600);
  margin-bottom: 18px;
}

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

.rank-section {
  padding-top: 40px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--slate-900), var(--orange-900));
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--slate-950);
  background: var(--amber-400);
  font-weight: 900;
}

.rank-item h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.rank-item p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
}

.year-rank-block + .year-rank-block {
  margin-top: 42px;
}

.year-rank-block h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.empty-result {
  display: none;
  padding: 36px;
  border-radius: 24px;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 800;
}

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

.detail-hero {
  min-height: 620px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.76));
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 34px;
  color: #cbd5e1;
  letter-spacing: 0;
  text-transform: none;
}

.breadcrumbs a:hover {
  color: var(--amber-400);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 75px rgba(2, 6, 23, 0.45);
  background: linear-gradient(135deg, var(--slate-900), var(--orange-900));
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 20px;
}

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

.player-section {
  margin-top: -72px;
  position: relative;
  z-index: 5;
}

.player-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 22px;
  padding: 18px;
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: var(--slate-950);
  background: var(--amber-400);
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.35);
  font-size: 28px;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 18px;
}

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

.player-copy {
  padding: 20px;
  color: var(--white);
}

.player-copy h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.player-copy p {
  margin: 0;
  color: #cbd5e1;
}

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

.detail-copy article,
.movie-facts {
  margin: 0;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.detail-copy article h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-copy article p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
}

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

.movie-facts div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.movie-facts dt {
  color: var(--amber-600);
  font-weight: 900;
}

.movie-facts dd {
  margin: 4px 0 0;
  color: var(--slate-900);
  font-weight: 800;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 30px;
}

.footer-inner strong {
  display: block;
  color: var(--white);
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-inner p {
  margin: 0;
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
}

@media (max-width: 1080px) {
  .movie-grid,
  .catalog-grid,
  .featured-grid,
  .large-rank {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .player-panel,
  .detail-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 26px 50px rgba(2, 6, 23, 0.34);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-dropdown,
  .nav-drop-panel {
    width: 100%;
  }

  .nav-drop-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    padding: 88px 0 270px;
    justify-content: start;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
    bottom: 24px;
  }

  .hero-search div,
  .inline-search,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button,
  .inline-search button {
    width: 100%;
  }

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

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

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

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

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

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .content-section,
  .page-hero > div,
  .detail-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero-carousel {
    min-height: 790px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

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

  .button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 16px;
  }

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

  .rank-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .movie-facts {
    grid-template-columns: 1fr;
  }

  .player-panel {
    padding: 10px;
    border-radius: 24px;
  }

  .video-shell {
    border-radius: 18px;
  }
}
