:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-soft: rgba(30, 41, 59, 0.58);
  --panel-strong: #0f172a;
  --line: #1e293b;
  --line-light: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --teal: #14b8a6;
  --teal-strong: #0d9488;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #dc2626;
  --purple: #a855f7;
  --yellow: #facc15;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 5%, rgba(20, 184, 166, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(8, 145, 178, 0.15), transparent 28rem),
    var(--bg);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(51, 65, 85, 0.82);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 25px rgba(20, 184, 166, 0.25);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link {
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  border-radius: 12px;
  padding: 12px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.5);
}

body.nav-open .mobile-nav {
  display: flex;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.16)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.24) 56%, rgba(2, 6, 23, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 580px;
  align-items: flex-end;
  padding-bottom: 130px;
}

.hero-copy {
  max-width: 680px;
  animation: fadeIn 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.8);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 13px;
}

.hero .meta-row {
  margin-top: 18px;
  font-size: 15px;
}

.meta-row span {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.72);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 13px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.28);
}

.btn.primary:hover {
  background: var(--teal-strong);
}

.btn.ghost {
  border: 1px solid rgba(203, 213, 225, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 112px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.active {
  width: 28px;
  background: var(--teal);
}

.hero-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  margin-top: 500px;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.strip-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.strip-title strong {
  font-size: 20px;
}

.strip-title span {
  color: var(--muted);
  font-size: 13px;
}

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

.main-content {
  padding: 64px 0 84px;
}

.stack {
  display: grid;
  gap: 72px;
}

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

.section-heading > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  grid-column: 2;
  margin: -4px 0 0;
  color: var(--muted);
}

.section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 15px 30px rgba(20, 184, 166, 0.18);
}

.section-action {
  color: var(--teal);
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(51, 65, 85, 0.68);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-soft);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(30, 41, 59, 0.88);
}

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.07);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18) 58%, transparent);
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-shade {
  opacity: 0.98;
}

.play-circle,
.play-dot {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 184, 166, 0.88);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-circle {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  translate: -50% -50%;
  font-size: 19px;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  translate: -50% -50%;
}

.play-dot::before {
  content: "";
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.movie-card:hover .play-circle,
.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.type-pill {
  right: 10px;
  top: 10px;
  background: rgba(20, 184, 166, 0.9);
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body h3,
.movie-card:hover figcaption h3 {
  color: var(--teal);
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  min-height: 18px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--teal);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body .meta-row {
  justify-content: space-between;
  margin-top: 12px;
  gap: 6px;
}

.card-body .meta-row span {
  border: 0;
  padding: 0;
  background: transparent;
}

.movie-card.large {
  border-radius: 22px;
}

.wide-cover {
  aspect-ratio: 16 / 9;
}

.wide-cover figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 24px;
}

.wide-cover figcaption .type-pill {
  position: static;
  display: inline-flex;
  margin-bottom: 10px;
}

.wide-cover h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.wide-cover p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted-strong);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.horizontal {
  border-radius: 14px;
}

.horizontal .card-link {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 14px;
  min-height: 96px;
}

.small-cover {
  aspect-ratio: auto;
  height: 100%;
}

.horizontal .card-body {
  min-width: 0;
  padding: 12px 12px 12px 0;
}

.horizontal .card-body h3 {
  font-size: 15px;
}

.horizontal .card-body p {
  min-height: auto;
  margin-top: 4px;
  font-size: 13px;
}

.horizontal .meta-row {
  margin-top: 8px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.25));
}

.category-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 18px;
}

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

.category-content small {
  color: var(--muted-strong);
  line-height: 1.55;
}

.page-hero {
  padding: 68px 0 42px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.62);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.16), transparent 38%),
    rgba(2, 6, 23, 0.28);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.62);
}

.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  outline: none;
  background: rgba(2, 6, 23, 0.74);
}

.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-tab {
  min-height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.52);
}

.filter-tab.active,
.filter-tab:hover {
  border-color: var(--teal);
  color: #fff;
  background: rgba(20, 184, 166, 0.2);
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed var(--line-light);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.52);
}

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(20, 184, 166, 0.12), transparent 18rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  color: #fff;
  font-weight: 900;
  background: rgba(20, 184, 166, 0.94);
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  transform: scale(1.04);
  background: var(--teal-strong);
}

.player-start span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
}

.player-message {
  margin: 12px 0 0;
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.detail-card,
.info-panel {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 14px;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--muted-strong);
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-tags span {
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
}

.info-panel {
  padding: 18px;
}

.info-panel img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding-bottom: 10px;
}

.info-list dt {
  color: var(--muted);
}

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

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 18px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.48);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(20, 184, 166, 0.5);
}

.ranking-num {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.ranking-row h3 {
  margin: 0 0 5px;
}

.ranking-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  padding: 34px 0;
  background: rgba(15, 23, 42, 0.78);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  color: var(--muted-strong);
}

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

[data-filter-card].is-hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    min-height: 560px;
    padding-bottom: 190px;
  }

  .hero-controls {
    right: 16px;
    bottom: 170px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    margin-top: 480px;
  }

  .strip-list {
    grid-template-columns: 1fr;
  }

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

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

  .filter-tabs {
    justify-content: flex-start;
  }

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

@media (max-width: 540px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

  .btn {
    width: 100%;
  }

  .hero-controls {
    left: 12px;
    right: auto;
  }

  .hero-strip {
    margin-top: 500px;
  }

  .movie-grid,
  .movie-grid.compact,
  .movie-grid.search-grid,
  .large-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .horizontal .card-link {
    grid-template-columns: 110px 1fr;
  }

  .wide-cover h3 {
    font-size: 22px;
  }

  .detail-card {
    padding: 20px;
  }
}
