:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #1e293b;
  --bg-card-strong: #111827;
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #3b82f6;
  --yellow: #facc15;
  --green: #22c55e;
  --red: #ef4444;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.14), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 70%);
  z-index: -1;
}

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

img {
  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: 80;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  color: var(--muted-2);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 46px;
  left: 0;
  width: 200px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

.dropdown-link {
  display: block;
  padding: 10px 12px;
  color: var(--muted-2);
  border-radius: 10px;
}

.dropdown-link:hover {
  color: var(--cyan);
  background: rgba(30, 41, 59, 0.9);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 300px;
}

.nav-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(15, 23, 42, 0.92);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  height: 40px;
  border-radius: 999px;
  padding: 0 16px;
}

.nav-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.nav-search button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: var(--cyan-strong);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px 16px 16px;
  background: rgba(2, 6, 23, 0.98);
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-2);
  background: rgba(15, 23, 42, 0.72);
}

.mobile-link:hover {
  color: var(--cyan);
}

.page-main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58) 52%, rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 112px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-2);
  font-size: 19px;
}

.hero-tags,
.detail-meta,
.genre-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags a,
.hero-tags span,
.detail-meta a,
.detail-meta span,
.genre-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.14);
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.hero-mini-row {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 72px;
  z-index: 7;
  width: min(430px, 38vw);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-mini-card {
  position: relative;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--bg-card);
}

.hero-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-mini-card span {
  position: absolute;
  inset: auto 8px 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-mini-card:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.section {
  padding: 72px 0;
}

.section.no-top {
  padding-top: 0;
}

.section-dark {
  background: rgba(15, 23, 42, 0.72);
  border-block: 1px solid var(--border);
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

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

.section-kicker {
  color: var(--cyan);
}

.section-kicker.green {
  color: var(--green);
}

.section-kicker.yellow {
  color: var(--yellow);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.16);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-large .poster-wrap {
  aspect-ratio: 21 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16));
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.movie-card:hover .poster-copy {
  transform: translateY(0);
}

.poster-copy p {
  display: -webkit-box;
  margin: 0;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  right: auto;
  color: #111827;
  font-weight: 900;
  background: var(--yellow);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-large .card-body h2 {
  font-size: 24px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta span:first-child {
  color: var(--cyan);
  background: #334155;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.card-body p {
  display: -webkit-box;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 360px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
}

.wide-card {
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wide-card a {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 120px;
}

.wide-card img {
  width: 130px;
  height: 100%;
  object-fit: cover;
}

.wide-card div {
  padding: 16px;
}

.wide-card h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  font-size: 17px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.wide-card span {
  color: var(--cyan);
  font-size: 13px;
}

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

.category-tile {
  min-height: 170px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 22px 48px rgba(6, 182, 212, 0.18);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 32px;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.category-tile p {
  display: -webkit-box;
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-tile:hover p {
  color: rgba(255, 255, 255, 0.86);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1fr;
  gap: 24px;
  align-items: start;
}

.compact-heading {
  margin-bottom: 22px;
}

.ranking-card,
.sidebar-panel,
.cover-panel,
.info-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.ranking-card {
  padding: 22px;
}

.ranking-card h2,
.sidebar-panel h2,
.cover-panel h2,
.info-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.ranking-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.7);
}

.ranking-card a:hover {
  background: rgba(51, 65, 85, 0.9);
}

.ranking-card span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #111827;
  background: var(--yellow);
  font-weight: 900;
}

.ranking-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.feature-side {
  display: grid;
  gap: 16px;
}

.sub-main {
  padding-top: 44px;
}

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

.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted-2);
  font-size: 14px;
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
  height: 44px;
  border-radius: 14px;
  padding: 0 14px;
}

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

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
}

.search-page-form input {
  flex: 1 1 auto;
}

.detail-main {
  padding: 34px 0 76px;
}

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

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

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

.player-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.34));
  z-index: 4;
}

.player-layer.is-hidden {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.28);
  font-size: 30px;
}

.detail-content h1 {
  margin: 28px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-meta {
  margin-bottom: 18px;
}

.genre-row {
  margin-bottom: 20px;
}

.info-panel {
  padding: 24px;
  margin-top: 18px;
}

.info-panel p {
  margin: 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.85;
}

.tag-cloud {
  margin: 20px 0;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.prev-next a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  color: var(--muted-2);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
}

.prev-next a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.55);
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.cover-panel {
  padding: 18px;
}

.cover-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.cover-panel p {
  margin: 0;
  color: var(--muted);
}

.sidebar-panel {
  padding: 18px;
}

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

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card-compact .card-body h2 {
  min-height: auto;
  margin-bottom: 6px;
  font-size: 14px;
  -webkit-line-clamp: 1;
}

.movie-card-compact .card-body p,
.movie-card-compact .poster-copy {
  display: none;
}

.movie-card-compact .card-meta {
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  padding: 50px 0 0;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.96);
  color: var(--muted-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

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

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  max-width: none;
  margin: 0;
}

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

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

  .hero-mini-row {
    display: none;
  }

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

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

  .nav-wrap {
    justify-content: space-between;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-carousel {
    height: 66vh;
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 88px;
  }

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

  .hero-control {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

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

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

  .detail-sidebar {
    position: static;
  }

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

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

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

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

  .hero-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-actions,
  .search-page-form {
    flex-direction: column;
  }

  .hero-prev,
  .hero-next {
    display: none;
  }

  .hero-dots {
    bottom: 34px;
  }

  .section {
    padding: 48px 0;
  }

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

  .movie-grid.four-col,
  .category-grid,
  .filter-panel,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .wide-card a {
    grid-template-columns: 110px 1fr;
  }

  .wide-card img {
    width: 110px;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }
}
