@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #0a0e13;
  --bg-deep: #05070a;
  --panel: rgba(42, 37, 31, 0.72);
  --panel-soft: rgba(79, 72, 59, 0.42);
  --line: rgba(114, 102, 80, 0.42);
  --line-strong: rgba(217, 119, 6, 0.42);
  --text: #edeae3;
  --muted: #b8ad9a;
  --dim: #827767;
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --red: #f87171;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 119, 6, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(114, 102, 80, 0.16), transparent 30rem),
    linear-gradient(180deg, #0a0e13 0%, #0b0b0d 45%, #05070a 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 80%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.94);
  border-bottom: 1px solid rgba(95, 85, 70, 0.5);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.24);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--dim);
  font-size: 0.75rem;
}

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

.nav-link {
  color: #d6cfc1;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.header-search input,
.mobile-search input,
.filter-input,
.search-large input {
  width: 100%;
  color: var(--text);
  background: rgba(79, 72, 59, 0.45);
  border: 1px solid rgba(114, 102, 80, 0.58);
  border-radius: 12px;
  outline: none;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.search-large input:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
  background: rgba(42, 37, 31, 0.84);
}

.header-search button,
.mobile-search button,
.search-large button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-large button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(114, 102, 80, 0.5);
  border-radius: 12px;
  background: rgba(79, 72, 59, 0.45);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-panel {
  border-top: 1px solid rgba(95, 85, 70, 0.5);
  padding: 16px;
  background: rgba(10, 14, 19, 0.98);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: #d6cfc1;
  border-bottom: 1px solid rgba(95, 85, 70, 0.32);
}

.mobile-link.active,
.mobile-link:hover {
  color: #fbbf24;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #05070a;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 42%, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(90deg, rgba(5, 7, 10, 0.95), rgba(5, 7, 10, 0.62) 46%, rgba(5, 7, 10, 0.95)),
    linear-gradient(180deg, rgba(5, 7, 10, 0.24), #0a0e13 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding-top: 40px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #fbbf24;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.32);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  font-family: "Noto Serif SC", Georgia, serif;
  margin: 18px 0 18px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
}

.hero p {
  max-width: 680px;
  color: #d6cfc1;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.9;
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #f5ead5;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(10, 14, 19, 0.56);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: #fbbf24;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.hero-poster {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow);
  background: rgba(79, 72, 59, 0.4);
}

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  background: rgba(10, 14, 19, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  border-color: #f59e0b;
  background: #f59e0b;
}

.main-section {
  padding: 72px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: #fbbf24;
  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));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79, 72, 59, 0.46), rgba(42, 37, 31, 0.36));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79, 72, 59, 0.66), rgba(10, 14, 19, 0.84));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.3s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  right: 12px;
  color: #0a0e13;
  background: #fbbf24;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 14, 19, 0.72);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

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

.movie-card-body {
  padding: 18px;
}

.movie-card-meta,
.card-bottom,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 0.86rem;
}

.movie-card-meta span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
}

.movie-card h3 {
  margin: 10px 0 8px;
  min-height: 3rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
}

.movie-card h3 a:hover {
  color: #fbbf24;
}

.movie-card-desc {
  display: -webkit-box;
  min-height: 3.2rem;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  color: #f7d892;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-bottom {
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(95, 85, 70, 0.42);
}

.card-bottom a {
  color: #fbbf24;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(95, 85, 70, 0.5);
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.2), transparent 12rem),
    linear-gradient(135deg, rgba(79, 72, 59, 0.52), rgba(42, 37, 31, 0.42));
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card span {
  color: #fbbf24;
  font-weight: 900;
}

.category-card h3 {
  margin: 12px 0 10px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.45rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: 18px;
  padding: 12px 16px;
  background: rgba(42, 37, 31, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a0e13;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  font-weight: 950;
}

.rank-cover {
  display: block;
  width: 86px;
  height: 116px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(79, 72, 59, 0.4);
}

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

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.rank-main h3 a:hover {
  color: #fbbf24;
}

.rank-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
}

.rank-side strong {
  color: #fbbf24;
  font-size: 1.4rem;
}

.page-hero {
  padding: 76px 0 44px;
  border-bottom: 1px solid rgba(95, 85, 70, 0.42);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(42, 37, 31, 0.42), rgba(10, 14, 19, 0));
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 4rem);
}

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

.category-toolbar,
.search-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(42, 37, 31, 0.52);
}

.search-large {
  max-width: 840px;
}

.filter-status,
.search-status {
  color: var(--dim);
  min-height: 1.5rem;
  margin: 12px 0 0;
}

.detail-hero {
  padding: 56px 0 36px;
  background:
    radial-gradient(circle at 75% 18%, rgba(245, 158, 11, 0.16), transparent 26rem),
    linear-gradient(180deg, rgba(42, 37, 31, 0.44), transparent 100%);
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(79, 72, 59, 0.44);
  box-shadow: var(--shadow);
}

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

.detail-title h1 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.detail-title .lead {
  max-width: 820px;
  color: #d6cfc1;
  font-size: 1.1rem;
  line-height: 1.9;
}

.detail-meta {
  gap: 12px;
  margin-bottom: 16px;
}

.detail-meta span {
  border: 1px solid rgba(95, 85, 70, 0.55);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(79, 72, 59, 0.35);
}

.player-section {
  padding: 42px 0 0;
}

.player-box {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.36);
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(217, 119, 6, 0.2), rgba(0, 0, 0, 0.58)),
    rgba(0, 0, 0, 0.22);
  cursor: pointer;
  z-index: 2;
}

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

.player-start span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.35);
  font-size: 2rem;
}

.player-start b {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  padding-top: 44px;
}

.content-card {
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: var(--radius);
  background: rgba(42, 37, 31, 0.52);
  padding: 28px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.6rem;
}

.content-card p {
  margin: 0;
  color: #d7cfbf;
  line-height: 2;
}

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

.side-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: 16px;
  padding: 10px;
  background: rgba(42, 37, 31, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
  border-color: rgba(245, 158, 11, 0.48);
  transform: translateY(-2px);
}

.side-item img {
  width: 74px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(79, 72, 59, 0.4);
}

.side-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.45;
}

.side-item span {
  color: var(--dim);
  font-size: 0.86rem;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.next-prev a {
  flex: 1;
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  background: rgba(42, 37, 31, 0.5);
}

.next-prev a:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.42);
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid rgba(95, 85, 70, 0.5);
  background: rgba(5, 7, 10, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 42px;
  padding: 44px 0;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: var(--dim);
}

.footer-brand p {
  max-width: 560px;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--text);
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(95, 85, 70, 0.42);
  font-size: 0.9rem;
}

.empty-result {
  display: none;
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  background: rgba(42, 37, 31, 0.52);
}

.empty-result.show {
  display: block;
}

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

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

  .header-search {
    min-width: 240px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

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

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

@media (max-width: 860px) {
  .header-search {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    width: 210px;
    justify-self: start;
  }

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

  .rank-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-side {
    grid-column: 2 / -1;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: start;
  }

  .detail-head,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }

  .category-toolbar,
  .search-large {
    grid-template-columns: 1fr;
  }
}

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

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions,
  .detail-actions,
  .section-heading,
  .footer-bottom,
  .next-prev {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-grid,
  .movie-grid.compact,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .movie-card h3 {
    min-height: auto;
  }

  .content-card {
    padding: 22px;
  }
}
