:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --panel-soft: rgba(30, 41, 59, 0.56);
  --line: rgba(51, 65, 85, 0.78);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #64748b;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --blue: #3b82f6;
  --green: #10b981;
  --purple: #a855f7;
  --pink: #ec4899;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #06111f 46%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.28);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08);
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-subtitle {
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover,
.mobile-panel a:hover {
  color: #22d3ee;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input,
.filter-input,
.search-page-form input {
  width: 260px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.84);
  outline: none;
  padding: 10px 14px 10px 42px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input::placeholder,
.filter-input::placeholder,
.search-page-form input::placeholder {
  color: #64748b;
}

.search-form input:focus,
.filter-input:focus,
.search-page-form input:focus {
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 0 18px;
}

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

.mobile-panel .search-form {
  margin-bottom: 14px;
}

.mobile-panel .search-form input {
  width: 100%;
}

.mobile-links {
  display: grid;
  gap: 6px;
}

.mobile-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-links a:hover {
  background: rgba(30, 41, 59, 0.82);
}

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

.hero-slides,
.hero-slide,
.hero-image-layer {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

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

.hero-gradient-right,
.hero-gradient-bottom {
  position: absolute;
  inset: 0;
}

.hero-gradient-right {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.18));
}

.hero-gradient-bottom {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.hero-copy {
  max-width: 720px;
  padding: 72px 0 96px;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-size: 14px;
  font-weight: 750;
  padding: 7px 13px;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 24px 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta,
.movie-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 28px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.94), rgba(20, 184, 166, 0.94));
  font-size: 13px;
  font-weight: 750;
}

.meta-text {
  color: var(--muted);
  font-size: 14px;
}

.btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.search-page-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 20px;
  color: #ffffff;
  font-weight: 800;
  transition: transform 0.22s ease, filter 0.22s ease, background 0.22s ease;
}

.btn-primary,
.search-page-form button {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 14px 34px rgba(20, 184, 166, 0.28);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover,
.search-page-form button:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #475569;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 72px 0 0;
}

.section.panel-section {
  margin-top: 72px;
  padding: 44px 0;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.52));
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.48);
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-bar {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.section h2,
.page-title,
.detail-title {
  margin: 0;
  color: #ffffff;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-desc {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: #67e8f9;
  font-weight: 750;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.38);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(15, 23, 42, 0.92);
}

.movie-card.large .poster-frame {
  aspect-ratio: 16 / 9;
}

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

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

.poster-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.16) 64%, rgba(2, 6, 23, 0));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card.large .poster-fade,
.movie-card:hover .poster-fade {
  opacity: 1;
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  backdrop-filter: blur(10px);
}

.play-badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.play-badge span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 14px 35px rgba(6, 182, 212, 0.36);
}

.movie-card:hover .play-badge {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.movie-card.large .card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 22px;
}

.card-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card.large .card-title {
  font-size: 22px;
}

.movie-card:hover .card-title {
  color: #22d3ee;
}

.card-meta {
  color: #64748b;
  font-size: 12px;
  margin-bottom: 10px;
}

.card-meta .region {
  color: #22d3ee;
}

.card-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card.large .card-desc {
  color: #cbd5e1;
  font-size: 14px;
}

.category-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.42);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 44%),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.26), transparent 44%),
    rgba(15, 23, 42, 0.9);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(20, 184, 166, 0.22));
  color: #67e8f9;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 58px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.88), rgba(20, 184, 166, 0.88));
}

.rank-thumb {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.rank-info h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rank-cta {
  color: #22d3ee;
  font-weight: 800;
  padding-right: 8px;
}

.page-hero {
  padding: 62px 0 20px;
}

.page-panel {
  border: 1px solid rgba(51, 65, 85, 0.44);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.62));
  box-shadow: var(--shadow);
}

.page-title {
  font-size: clamp(34px, 6vw, 60px);
}

.page-intro {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  margin: 14px 0 0;
}

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

.breadcrumb a {
  color: #67e8f9;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 24px;
}

.filter-input {
  width: min(420px, 100%);
}

.category-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-nav-row a {
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  padding: 8px 13px;
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-nav-row a:hover,
.category-nav-row a.is-active {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(6, 182, 212, 0.18);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding-top: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 20px 54px rgba(20, 184, 166, 0.38);
  font-size: 32px;
  transform: translateX(3px);
}

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

.detail-title {
  font-size: clamp(30px, 4vw, 48px);
  margin: 26px 0 14px;
}

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

.detail-meta span {
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  padding: 8px 12px;
  font-size: 14px;
}

.movie-tags {
  margin: 16px 0 0;
}

.tag {
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  padding: 5px 10px;
  font-size: 13px;
}

.content-card {
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  padding: 24px;
  margin-top: 20px;
}

.content-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.content-card h2::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: var(--cyan);
}

.content-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.86;
}

.side-card {
  position: sticky;
  top: 88px;
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  padding: 22px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.8);
  margin-bottom: 18px;
}

.side-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  color: #cbd5e1;
  padding: 0 0 10px;
  font-size: 14px;
}

.side-list a:hover {
  color: #22d3ee;
}

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

.search-page-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.search-page-form input {
  width: min(520px, 100%);
}

.search-summary {
  color: var(--muted);
  margin-bottom: 22px;
}

.empty-state {
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.62);
  padding: 42px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  margin-top: 82px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 44px 0 30px;
}

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.footer-text,
.footer-links a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  padding: 20px 0 24px;
}

@media (max-width: 1180px) {
  .grid-posters {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .primary-nav,
  .header-tools .search-form {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

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

  .side-card {
    position: static;
  }

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

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

  .logo-subtitle {
    display: none;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    min-height: 76vh;
  }

  .hero-copy {
    padding: 62px 0 88px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding-top: 48px;
  }

  .section-head,
  .filter-toolbar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-featured,
  .grid-wide,
  .category-grid,
  .grid-posters,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

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

  .rank-item a {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-thumb {
    width: 58px;
    height: 78px;
  }

  .rank-cta {
    display: none;
  }

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

  .search-page-form button {
    width: 100%;
  }

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

@media (max-width: 420px) {
  .logo-title {
    font-size: 17px;
  }

  .grid-featured,
  .grid-wide,
  .category-grid,
  .grid-posters,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-card:not(.large) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-card:not(.large) .poster-frame {
    aspect-ratio: 3 / 4;
  }
}
