:root {
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-teal: #14b8a6;
  --color-green: #16a34a;
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-500: #6b7280;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  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(--color-gray-800);
  background: var(--color-gray-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.nav-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-gray-900);
  white-space: nowrap;
}

.brand-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: var(--color-blue);
  padding: 10px 16px;
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-gray-800);
  transition: transform 0.2s ease;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-gray-200);
  padding: 14px 20px 18px;
  background: #ffffff;
}

.mobile-menu.open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  font-weight: 700;
  color: var(--color-gray-700);
}

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

.mobile-search {
  display: flex;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #2563eb, #14b8a6);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 860px;
  padding-top: 24px;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  color: #bfdbfe;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(16px, 2vw, 21px);
  color: #e5e7eb;
}

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

.center-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 24px;
  border: 1px solid transparent;
  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: var(--color-blue);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}

.btn.primary:hover {
  background: var(--color-blue-dark);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

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

.btn.soft {
  color: var(--color-gray-800);
  background: var(--color-gray-100);
  border-color: var(--color-gray-200);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

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

.stats-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -42px;
}

.stats-strip div {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stats-strip strong {
  display: block;
  font-size: 28px;
  color: var(--color-blue);
}

.stats-strip span {
  color: var(--color-gray-500);
  font-weight: 700;
}

.page-stack {
  padding: 54px 0;
}

.content-section {
  margin-bottom: 56px;
}

.no-padding-top {
  margin-top: 34px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  color: var(--color-gray-800);
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--color-gray-500);
}

.section-more {
  color: var(--color-blue);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

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

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

.poster-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-wrap::before {
  background: rgba(0, 0, 0, 0.28);
}

.poster-fallback::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  font-size: 20px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 35%), linear-gradient(135deg, #1e3a8a, #0f766e);
}

.category-badge,
.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.category-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: var(--color-blue);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.24);
}

.play-mark {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-info h3,
.horizontal-info h3 {
  margin: 0 0 8px;
  color: var(--color-gray-800);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p,
.horizontal-info p {
  margin: 0 0 12px;
  color: var(--color-gray-500);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--color-gray-500);
  font-size: 13px;
}

.horizontal-card {
  border-radius: var(--radius-md);
}

.horizontal-link {
  display: flex;
  gap: 16px;
  height: 100%;
}

.horizontal-poster {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
}

.horizontal-info {
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.warm-band,
.feature-band {
  padding: 28px;
  border-radius: 26px;
}

.warm-band {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.feature-band {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.cta-panel {
  padding: 58px 30px;
  border-radius: 28px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #111827, #1e3a8a 55%, #0f766e);
  box-shadow: var(--shadow-soft);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: #d1d5db;
}

.page-hero {
  padding: 78px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb, #14b8a6);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

.category-hero {
  background: linear-gradient(135deg, #111827, #2563eb 50%, #14b8a6);
}

.rank-hero {
  background: linear-gradient(135deg, #7c2d12, #dc2626, #f97316);
}

.search-hero {
  background: linear-gradient(135deg, #064e3b, #0f766e, #14b8a6);
}

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

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

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  height: 130px;
  background: var(--color-gray-100);
}

.mini-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

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

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

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card-body p {
  min-height: 50px;
  margin: 0 0 12px;
  color: var(--color-gray-500);
}

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

.filter-panel,
.search-panel {
  margin-bottom: 26px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel label,
.search-grid-controls label {
  display: grid;
  gap: 8px;
  color: var(--color-gray-700);
  font-weight: 800;
}

.filter-panel input,
.search-grid-controls input,
.search-grid-controls select {
  width: 100%;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 13px 14px;
  background: #ffffff;
}

.filter-panel input:focus,
.search-grid-controls input:focus,
.search-grid-controls select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.inline-filter {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 16px;
}

.quick-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-filter-list button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--color-blue);
  background: #eff6ff;
  font-weight: 800;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--color-gray-500);
}

.search-grid-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 14px;
}

.search-grid-controls span {
  color: var(--color-gray-700);
  font-weight: 800;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.search-actions button {
  border: 0;
}

.search-actions p {
  margin: 0;
  color: var(--color-gray-500);
  font-weight: 700;
}

.player-section {
  padding: 20px 0 30px;
  background: #000000;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #60a5fa;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

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

.player-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.95);
}

.player-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 28px;
  padding: 34px 0 64px;
}

.detail-card,
.sidebar-card,
.info-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-gray-200);
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  font-size: 13px;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.detail-actions button {
  border: 0;
}

.text-block {
  margin-top: 24px;
}

.text-block h2,
.tag-block h2,
.sidebar-card h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-block p {
  margin: 0 0 14px;
  color: var(--color-gray-700);
}

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

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  font-size: 14px;
  font-weight: 800;
}

.tag:hover {
  color: var(--color-blue);
  background: #eff6ff;
}

.detail-sidebar {
  min-width: 0;
}

.sidebar-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--color-gray-100);
}

.related-thumb {
  position: relative;
  width: 116px;
  height: 74px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

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

.related-item h4 {
  margin: 0 0 6px;
  color: var(--color-gray-800);
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item p {
  margin: 0;
  color: var(--color-gray-500);
  font-size: 12px;
}

.info-card {
  padding: 30px;
  color: var(--color-gray-700);
}

.info-card p {
  margin: 0 0 14px;
}

.ordered-list {
  margin: 0;
  padding-left: 22px;
}

.ordered-list li {
  margin-bottom: 10px;
}

.not-found-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 50px 16px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.not-found-card {
  width: min(520px, 100%);
  padding: 44px 30px;
  border-radius: 28px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.not-found-card h1 {
  margin: 0;
  color: var(--color-blue);
  font-size: 96px;
  line-height: 1;
}

.not-found-card h2 {
  margin: 10px 0;
  font-size: 30px;
}

.site-footer {
  color: #d1d5db;
  background: var(--color-gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 12px;
}

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

.site-footer p {
  margin: 0 0 12px;
}

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

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

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

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

.footer-bottom p {
  margin: 0;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.movie-card,
.category-card,
.detail-card,
.sidebar-card,
.info-card {
  animation: fadeInUp 0.45s ease both;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

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

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

@media (max-width: 820px) {
  .hero {
    height: 560px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

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

  .horizontal-link {
    display: block;
  }

  .horizontal-poster {
    width: 100%;
  }

  .horizontal-info {
    padding: 16px;
  }

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

  .inline-filter {
    grid-template-columns: 1fr;
  }

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

  .sidebar-card {
    position: static;
  }

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

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

  .nav-bar {
    min-height: 62px;
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    height: 600px;
  }

  .hero-actions,
  .center-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .stats-strip,
  .movie-grid,
  .compact-grid,
  .all-grid,
  .horizontal-grid,
  .category-grid,
  .search-grid-controls {
    grid-template-columns: 1fr;
  }

  .warm-band,
  .feature-band {
    padding: 18px;
  }

  .page-hero {
    padding: 54px 0;
  }

  .detail-card {
    padding: 20px;
  }

  .player-overlay {
    width: calc(100% - 42px);
    justify-content: center;
  }
}
