html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 32rem),
    #0d0d10;
  color: #e7e7ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(44, 44, 52, 0.9);
  background: rgba(13, 13, 16, 0.88);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: #0d0d10;
  background: linear-gradient(135deg, #eab308, #ef4444);
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.28);
  font-size: 0.9rem;
  font-weight: 900;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #facc15, #fb923c, #f87171);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #d1d1d6;
  border-radius: 0.75rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 0.62rem 0.9rem;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #facc15;
  background: rgba(44, 44, 52, 0.68);
}

.header-search,
.mobile-search,
.search-hero form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search input,
.mobile-search input,
.search-hero input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #2c2c34;
  border-radius: 0.8rem;
  background: rgba(26, 26, 31, 0.9);
  color: #e7e7ea;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input,
.search-hero input {
  width: 13rem;
  padding: 0.65rem 0.85rem;
}

.header-search input:focus,
.mobile-search input:focus,
.search-hero input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}

.header-search button,
.mobile-search button,
.search-hero button,
.filter-bar button,
.primary-button,
.ghost-button,
.page-hero-actions a,
.hero-side-card a {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.7rem 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-hero button,
.primary-button,
.page-hero-actions a:first-child,
.hero-side-card a {
  color: #0d0d10;
  background: linear-gradient(135deg, #eab308, #ef4444);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.28);
}

.ghost-button,
.page-hero-actions a:last-child,
.filter-bar button {
  color: #facc15;
  background: rgba(44, 44, 52, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.22);
}

.header-search button:hover,
.mobile-search button:hover,
.search-hero button:hover,
.primary-button:hover,
.ghost-button:hover,
.page-hero-actions a:hover,
.hero-side-card a:hover,
.filter-bar button:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #2c2c34;
  border-radius: 0.75rem;
  color: #e7e7ea;
  background: rgba(26, 26, 31, 0.82);
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

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

.mobile-panel nav {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.mobile-link {
  padding: 0.75rem 0.85rem;
}

.hero-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.25rem;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 1.8rem;
  overflow: hidden;
  background: #1a1a1f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 16, 0.96), rgba(13, 13, 16, 0.72) 38%, rgba(13, 13, 16, 0.12)),
    linear-gradient(0deg, rgba(13, 13, 16, 0.85), transparent 42%);
}

.hero-copy {
  position: absolute;
  left: clamp(1.25rem, 4vw, 4.5rem);
  bottom: clamp(5rem, 9vw, 7rem);
  max-width: 44rem;
}

.hero-kicker,
.page-hero span,
.category-card span,
.category-overview-card span,
.detail-title-block span {
  display: inline-flex;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0.75rem 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
  color: #ffffff;
  text-shadow: 0 0 34px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  max-width: 38rem;
  color: #d1d1d6;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.hero-tags,
.tag-line,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span,
.tag-line span,
.detail-tags span {
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
  color: #fef3c7;
  background: rgba(234, 179, 8, 0.13);
  border: 1px solid rgba(234, 179, 8, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(13, 13, 16, 0.46);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
}

.hero-nav.prev {
  left: 1rem;
}

.hero-nav.next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  width: 2.4rem;
  background: linear-gradient(90deg, #eab308, #ef4444);
}

.hero-side-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 1.5rem;
  padding: 1.35rem;
  background:
    linear-gradient(145deg, rgba(42, 28, 8, 0.8), rgba(26, 26, 31, 0.9)),
    #1a1a1f;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.side-card-glow {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 15rem;
  height: 15rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  filter: blur(8px);
}

.hero-side-card span {
  color: #facc15;
  font-weight: 800;
}

.hero-side-card h2 {
  margin: 0.75rem 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 950;
}

.hero-side-card p {
  color: #d1d1d6;
  line-height: 1.75;
}

.hero-side-card a {
  margin-top: 1.25rem;
  text-align: center;
}

.search-hero,
.content-section,
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.4rem 1rem;
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(234, 179, 8, 0.15);
  border-radius: 1.4rem;
  background: rgba(26, 26, 31, 0.56);
}

.search-hero h2,
.section-heading h2,
.page-hero h1,
.detail-title-block h1,
.detail-text h2 {
  color: #ffffff;
  font-weight: 950;
}

.search-hero h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.search-hero p,
.section-heading p,
.page-hero p,
.movie-card p,
.wide-card p,
.category-card p,
.category-overview-card p,
.detail-title-block p,
.detail-text p,
.footer-brand p {
  color: #b0b0b8;
  line-height: 1.7;
}

.search-hero input {
  width: min(32rem, 52vw);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0 1.3rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.section-heading p {
  margin: 0.35rem 0 0;
}

.section-heading > span {
  height: 0.25rem;
  flex: 1;
  min-width: 6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.55), transparent);
}

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

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(44, 44, 52, 0.92);
  background: rgba(26, 26, 31, 0.58);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 179, 8, 0.46);
  background: rgba(32, 32, 39, 0.88);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a1a1f;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 13, 16, 0.82), transparent 48%);
  opacity: 0.78;
}

.poster-frame em {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border-radius: 0.55rem;
  padding: 0.24rem 0.5rem;
  color: #ffffff;
  background: rgba(13, 13, 16, 0.74);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.rank-num {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  color: #0d0d10;
  background: linear-gradient(135deg, #eab308, #ef4444);
  font-size: 0.85rem;
}

.movie-card-body {
  padding: 0.85rem;
}

.movie-card h3 {
  margin: 0 0 0.4rem;
  color: #f4f4f5;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  min-height: 3.2rem;
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-row,
.wide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #facc15;
  font-size: 0.82rem;
  font-weight: 750;
}

.tag-line {
  margin-top: 0.7rem;
}

.tag-line span {
  font-size: 0.72rem;
  padding: 0.22rem 0.5rem;
}

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

.category-card,
.category-overview-card {
  border: 1px solid rgba(44, 44, 52, 0.92);
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(234, 179, 8, 0.08), rgba(239, 68, 68, 0.06)),
    rgba(26, 26, 31, 0.7);
  overflow: hidden;
}

.category-card > a {
  display: block;
  padding: 1.2rem;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0.45rem 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.2rem 1.2rem;
}

.category-mini-links a {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: #d1d1d6;
  background: rgba(13, 13, 16, 0.46);
  font-size: 0.78rem;
}

.category-mini-links a:hover {
  color: #facc15;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.3rem;
}

.wide-list {
  display: grid;
  gap: 0.75rem;
}

.wide-card a {
  display: grid;
  grid-template-columns: auto 5.4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(44, 44, 52, 0.9);
  border-radius: 1rem;
  background: rgba(26, 26, 31, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.wide-card a:hover {
  transform: translateX(3px);
  border-color: rgba(234, 179, 8, 0.42);
}

.wide-card img {
  width: 5.4rem;
  height: 7.2rem;
  object-fit: cover;
  border-radius: 0.8rem;
}

.wide-rank {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  color: #0d0d10;
  background: linear-gradient(135deg, #eab308, #ef4444);
  font-weight: 950;
}

.wide-card h3 {
  margin: 0 0 0.28rem;
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
}

.wide-card p {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.88rem;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

.page-hero > div {
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 1.6rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 28rem),
    linear-gradient(145deg, rgba(26, 26, 31, 0.9), rgba(13, 13, 16, 0.8));
}

.page-hero h1 {
  margin: 0.65rem 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 52rem;
  margin: 0;
  font-size: 1.05rem;
}

.page-hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(44, 44, 52, 0.9);
  border-radius: 1rem;
  background: rgba(26, 26, 31, 0.5);
}

.filter-bar input {
  min-width: min(100%, 24rem);
  flex: 1;
  padding: 0.75rem 0.9rem;
}

.filter-bar select {
  padding: 0.75rem 0.9rem;
}

.empty-state {
  display: none;
  margin: 1.5rem 0;
  padding: 2rem;
  border-radius: 1rem;
  color: #d1d1d6;
  text-align: center;
  background: rgba(26, 26, 31, 0.72);
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.8rem;
}

.category-overview-card .category-mini-links {
  padding: 0.7rem 0 0;
}

.ranking-list .wide-card a {
  grid-template-columns: auto 4.8rem minmax(0, 1fr);
}

.detail-wrap {
  padding-top: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #b0b0b8;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 1.4rem;
}

.detail-poster {
  border: 1px solid rgba(44, 44, 52, 0.9);
  border-radius: 1.4rem;
  padding: 0.85rem;
  background: rgba(26, 26, 31, 0.62);
  height: max-content;
}

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

.detail-tags {
  margin-top: 0.85rem;
}

.detail-main {
  min-width: 0;
}

.detail-title-block {
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 1.4rem;
  padding: 1.2rem;
  background:
    linear-gradient(145deg, rgba(234, 179, 8, 0.08), rgba(239, 68, 68, 0.06)),
    rgba(26, 26, 31, 0.56);
}

.detail-title-block h1 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.detail-title-block p {
  margin: 0;
  font-size: 1.05rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.detail-meta-grid div {
  border: 1px solid rgba(44, 44, 52, 0.9);
  border-radius: 1rem;
  padding: 0.85rem;
  background: rgba(26, 26, 31, 0.62);
}

.detail-meta-grid strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
}

.detail-meta-grid span {
  color: #b0b0b8;
  font-size: 0.82rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 1.3rem;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.55rem;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle, rgba(234, 179, 8, 0.14), transparent 18rem),
    rgba(0, 0, 0, 0.46);
  cursor: pointer;
}

.player-card.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #0d0d10;
  background: linear-gradient(135deg, #eab308, #ef4444);
  box-shadow: 0 0 34px rgba(234, 179, 8, 0.32);
  font-size: 1.5rem;
}

.player-cover strong {
  font-size: 1.3rem;
}

.player-cover em {
  color: #facc15;
  font-style: normal;
}

.detail-text {
  margin-top: 1rem;
  border: 1px solid rgba(44, 44, 52, 0.9);
  border-radius: 1.3rem;
  padding: 1.2rem;
  background: rgba(26, 26, 31, 0.62);
}

.detail-text h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.detail-text p + h2 {
  margin-top: 1.2rem;
}

.detail-text p {
  margin: 0;
  font-size: 1rem;
}

.related-section {
  padding-bottom: 3rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(44, 44, 52, 0.9);
  background: rgba(13, 13, 16, 0.92);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.2rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem;
}

.footer-brand p {
  max-width: 34rem;
  margin-top: 1rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.footer-columns h2 {
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.footer-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: #b0b0b8;
  font-size: 0.9rem;
}

.footer-columns a:hover {
  color: #facc15;
}

.footer-bottom {
  border-top: 1px solid rgba(44, 44, 52, 0.7);
  padding: 1rem;
  color: #8f8f98;
  text-align: center;
  font-size: 0.86rem;
}

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

  .menu-button {
    display: block;
  }

  .hero-section,
  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    min-height: auto;
  }

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

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

@media (max-width: 860px) {
  .hero-stage {
    min-height: 520px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(13, 13, 16, 0.98), rgba(13, 13, 16, 0.48));
  }

  .hero-copy {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 4.8rem;
  }

  .search-hero {
    grid-template-columns: 1fr;
  }

  .search-hero form,
  .mobile-search {
    align-items: stretch;
  }

  .search-hero input,
  .mobile-search input {
    width: 100%;
  }

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

  .category-overview-grid,
  .category-overview-card,
  .detail-layout,
  .footer-columns {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 24rem;
  }

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

@media (max-width: 560px) {
  .site-header-inner {
    padding: 0.75rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-section,
  .search-hero,
  .content-section,
  .detail-wrap,
  .page-hero {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-stage {
    min-height: 500px;
    border-radius: 1.2rem;
  }

  .hero-nav {
    display: none;
  }

  .movie-grid,
  .featured-grid,
  .catalogue-grid,
  .compact-grid {
    gap: 0.7rem;
  }

  .movie-card-body {
    padding: 0.68rem;
  }

  .wide-card a {
    grid-template-columns: auto 4.2rem minmax(0, 1fr);
  }

  .wide-card img {
    width: 4.2rem;
    height: 5.8rem;
  }

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