:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(30, 41, 59, 0.86);
  --line: rgba(127, 29, 29, 0.36);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --amber: #f59e0b;
  --amber-light: #fde68a;
  --red: #dc2626;
  --red-dark: #7f1d1d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(127, 29, 29, 0.55), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.16), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(127, 29, 29, 0.94), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #fde68a, #f59e0b 42%, #b91c1c 100%);
  color: #111827;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
  transition: transform 260ms ease;
}

.logo-mark.small {
  width: 30px;
  height: 30px;
  font-size: 18px;
  border-radius: 10px;
}

.site-logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.04);
}

.logo-text {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fca5a5, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #e2e8f0;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--amber-light);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(252, 211, 77, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  color: #f8fafc;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 12px 14px;
  border: 1px solid rgba(252, 211, 77, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.24)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.6) 38%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 22px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.45fr);
  align-items: end;
  gap: 42px;
}

.hero-text {
  max-width: 780px;
}

.eyebrow,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-light);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-text h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.hero-text p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.tag-links,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.tag-links a,
.quick-links a {
  border: 1px solid rgba(252, 211, 77, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.62);
  color: #fde68a;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn.primary {
  background: linear-gradient(90deg, #f59e0b, #dc2626);
  color: #fff;
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.28);
}

.btn.ghost {
  border: 1px solid rgba(252, 211, 77, 0.3);
  background: rgba(15, 23, 42, 0.62);
  color: #fde68a;
}

.btn.text {
  color: #fef3c7;
  padding-left: 6px;
}

.btn.full {
  width: 100%;
}

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

.hero-poster {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(330px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(252, 211, 77, 0.2);
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.7);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.hero-nav.prev {
  left: 22px;
}

.hero-nav.next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

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

.page-wrap {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.page-top {
  padding-top: 36px;
  padding-bottom: 72px;
}

.search-panel,
.catalog-toolbar,
.search-page-panel {
  margin: -42px auto 58px;
  padding: 22px;
  border: 1px solid rgba(252, 211, 77, 0.15);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search,
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.quick-search input,
.search-form input,
.catalog-filter,
.search-filters select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.68);
  color: var(--text);
  outline: 0;
  padding: 14px 16px;
}

.quick-search button,
.search-form button,
.sort-button {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #f59e0b, #dc2626);
  color: white;
  font-weight: 800;
  padding: 0 22px;
  cursor: pointer;
}

.quick-links {
  margin-top: 16px;
}

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

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

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.section-head h2 span {
  color: var(--amber);
}

.section-more {
  color: var(--amber-light);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.88);
}

.movie-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.72);
}

.thumb.poster {
  aspect-ratio: 3 / 4;
}

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

.thumb img,
.poster-tile img,
.rank-cover img,
.side-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.badge-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 0;
  color: var(--subtle);
  font-size: 13px;
}

.badge-row b {
  color: var(--amber-light);
}

.badge-row i {
  font-style: normal;
}

.movie-card h3 {
  margin: 10px 16px 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 16px 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.tag-row {
  margin: auto 16px 16px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.movie-card.horizontal {
  border-radius: 16px;
}

.horizontal-link {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
}

.card-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.card-copy strong {
  color: #f8fafc;
  line-height: 1.35;
}

.card-copy em,
.card-copy small {
  color: var(--subtle);
  font-style: normal;
  font-size: 12px;
}

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

.category-card {
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(252, 211, 77, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.78));
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-art img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-card strong {
  font-size: 20px;
  color: #fef3c7;
}

.category-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 34px;
}

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

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

.rank-mini a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-mini b {
  color: var(--amber-light);
}

.rank-mini span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mini em {
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.feature-band {
  padding: 30px;
  border: 1px solid rgba(252, 211, 77, 0.13);
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.26), rgba(245, 158, 11, 0.12));
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
}

.poster-strip {
  column-count: 6;
  column-gap: 18px;
}

.poster-tile {
  position: relative;
  display: block;
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
}

.poster-tile a {
  display: block;
  position: relative;
}

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

.poster-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 12px 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.page-hero {
  border: 1px solid rgba(252, 211, 77, 0.14);
  border-radius: 28px;
  padding: clamp(30px, 6vw, 62px);
  margin-bottom: 34px;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(127, 29, 29, 0.38), rgba(15, 23, 42, 0.82));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.8vw, 58px);
  line-height: 1.08;
}

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

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

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

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.7);
  transition: transform 220ms ease, border-color 220ms ease;
}

.category-overview-copy h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-overview-copy p {
  color: var(--muted);
  line-height: 1.75;
}

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

.catalog-toolbar {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-button {
  min-height: 42px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.sort-button.active {
  background: linear-gradient(90deg, #f59e0b, #dc2626);
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 64px 118px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 200ms ease, border-color 200ms ease;
}

.ranking-row a:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.ranking-row b {
  color: var(--amber-light);
  font-size: 22px;
}

.rank-cover {
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.72);
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em,
.rank-info small,
.rank-score {
  color: var(--subtle);
  font-style: normal;
}

.rank-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  text-align: right;
  color: var(--amber-light);
  font-weight: 800;
}

.search-page-panel {
  margin: 0 0 28px;
}

.search-filters {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

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

.player-card,
.detail-copy,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  z-index: 2;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.05);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 32px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
}

.detail-copy {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.12;
}

.detail-copy h2,
.side-card h2 {
  margin: 28px 0 14px;
  color: #fef3c7;
  font-size: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13px;
}

.lead-text {
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.article-text p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 14px;
}

.tag-links {
  margin-bottom: 12px;
}

.side-card {
  padding: 18px;
  margin-bottom: 18px;
}

.sticky-box {
  position: sticky;
  top: 92px;
}

.side-poster {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
}

.side-card p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), #020617);
}

.footer-grid {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 46px 0 32px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer h3 {
  color: #fef3c7;
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--subtle);
  line-height: 1.75;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

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

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

  .hero-content,
  .detail-grid,
  .split-section,
  .feature-layout,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .poster-strip {
    column-count: 4;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-wrap {
    width: min(100% - 28px, 1240px);
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-content {
    padding: 76px 18px 82px;
  }

  .hero-nav {
    display: none;
  }

  .search-panel {
    margin-top: -28px;
  }

  .quick-search,
  .search-form,
  .ranking-row a {
    grid-template-columns: 1fr;
  }

  .quick-search button,
  .search-form button {
    min-height: 46px;
  }

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

  .horizontal-link {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .poster-strip {
    column-count: 2;
  }

  .rank-score {
    text-align: left;
  }

  .search-filters {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .movie-grid.four,
  .category-grid,
  .overview-posters {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 38px;
  }

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