:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.10);
  --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.08);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), #ffffff 32rem);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.05);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 0.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25);
}

.brand-copy,
.footer-brand div {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 1.16rem;
  color: var(--stone-800);
}

.brand-copy small,
.footer-brand small {
  margin-top: 0.18rem;
  color: var(--stone-500);
}

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

.nav-link {
  position: relative;
  color: var(--stone-700);
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--green-600);
  transform: scaleX(0);
  transition: transform 180ms ease;
  content: "";
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--green-700);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(20rem, 28vw);
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  background: var(--stone-50);
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 0.7rem 0.85rem;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button {
  align-self: stretch;
  padding-inline: 0.9rem;
  border: 0;
  color: #ffffff;
  background: var(--green-600);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 0;
  border-radius: 0.75rem;
  background: var(--stone-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.25rem auto;
  background: var(--stone-700);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--stone-950);
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(16, 185, 129, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 70vh;
  min-height: 34rem;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green-600);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  max-width: 46rem;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p:not(.eyebrow) {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-meta,
.hero-tags,
.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-meta span,
.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
}

.hero-meta span {
  padding: 0.2rem 0;
}

.hero-tags {
  margin-top: 1rem;
}

.hero-tags span {
  padding: 0.36rem 0.72rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.hero-actions,
.page-actions {
  margin-top: 2rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.35rem;
  border-radius: 0.82rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--green-600);
  box-shadow: 0 14px 26px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--green-700);
  box-shadow: 0 18px 32px rgba(5, 150, 105, 0.34);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ghost-button.dark {
  border-color: var(--stone-200);
  color: var(--stone-700);
  background: #ffffff;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 2rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 1.5rem;
}

.hero-next {
  right: 1.5rem;
}

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

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

.hero-dot.is-active {
  width: 2rem;
  background: var(--green-500);
}

.section-block {
  padding-block: 4rem;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title h2,
.page-hero h1 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-title p,
.page-hero p,
.category-card p,
.category-overview-head p,
.site-footer p {
  max-width: 48rem;
  margin: 0.7rem 0 0;
  color: var(--stone-600);
  line-height: 1.75;
}

.section-title > a {
  flex-shrink: 0;
  color: var(--green-700);
  font-weight: 800;
}

.feature-slab {
  border-radius: 2rem;
  padding: 3rem;
}

.green-slab {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.stone-slab {
  background: var(--stone-100);
}

.amber-slab {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

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

.category-card,
.category-overview-card,
.detail-card,
.sidebar-card,
.filter-panel {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.category-card:hover {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  overflow: hidden;
  border-radius: 1rem;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--stone-200);
}

.category-card strong {
  color: var(--stone-800);
  font-size: 1.1rem;
}

.category-card em {
  color: var(--green-700);
  font-style: normal;
  font-weight: 750;
}

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
  border-color: rgba(5, 150, 105, 0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stone-200);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 58%);
}

.poster-badges {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  gap: 0.35rem;
}

.poster-badges span,
.poster-play {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.poster-badges span {
  padding: 0.28rem 0.55rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.poster-badges span:first-child {
  background: var(--green-600);
}

.poster-play {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  padding: 0.42rem 0.75rem;
  opacity: 0;
  background: rgba(5, 150, 105, 0.92);
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  display: grid;
  gap: 0.58rem;
  padding: 1rem;
}

.movie-info strong {
  color: var(--stone-800);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--stone-500);
  font-size: 0.78rem;
}

.meta-line span:not(:last-child)::after {
  margin-left: 0.45rem;
  content: "•";
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-row span {
  padding: 0.24rem 0.5rem;
  color: var(--stone-600);
  background: var(--stone-100);
}

.card-compact .movie-info em {
  -webkit-line-clamp: 1;
}

.filter-panel {
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.75rem;
}

.filter-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--stone-600);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.8rem;
  padding: 0.65rem 0.75rem;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: 0;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.filter-result {
  margin: 0.8rem 0 0;
  color: var(--stone-500);
  font-size: 0.9rem;
}

.rank-list {
  display: grid;
  gap: 0.72rem;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 5.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--stone-200);
  border-radius: 1.1rem;
  padding: 0.75rem;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rank-item:hover {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.rank-number {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-600);
  font-weight: 900;
}

.rank-item img {
  width: 5.5rem;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  object-fit: cover;
  background: var(--stone-200);
}

.rank-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.rank-copy strong {
  color: var(--stone-800);
  font-size: 1rem;
}

.rank-copy em {
  overflow: hidden;
  color: var(--stone-600);
  font-size: 0.88rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy span {
  color: var(--stone-500);
  font-size: 0.78rem;
}

.rank-score {
  color: var(--green-700);
  font-size: 1.1rem;
  font-weight: 900;
}

.page-shell {
  padding-bottom: 4rem;
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero p:not(.eyebrow) {
  font-size: 1.08rem;
}

.category-overview-grid {
  display: grid;
  gap: 1.5rem;
}

.category-overview-card {
  padding: 1.25rem;
}

.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-overview-head h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: 1.8rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 0.75rem;
  color: var(--stone-500);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--stone-700);
  font-weight: 700;
}

.breadcrumb strong {
  color: var(--green-700);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.5rem;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 1.25rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.35));
  cursor: pointer;
}

.player-overlay strong,
.player-overlay em {
  grid-column: 1;
  font-style: normal;
}

.big-play {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin-bottom: 0.7rem;
  place-items: center;
  border-radius: 999px;
  background: var(--green-600);
  box-shadow: 0 18px 30px rgba(5, 150, 105, 0.36);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.2rem;
}

.player-overlay em {
  margin-top: 0.24rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.player-card.is-playing .player-overlay,
.player-card.is-ready .player-overlay {
  display: none;
}

.player-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: none;
  border-radius: 0.8rem;
  padding: 0.65rem 0.8rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
}

.player-status.is-visible {
  display: block;
}

.detail-card,
.sidebar-card {
  padding: 1.25rem;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.detail-title-row h1 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.detail-score {
  align-self: start;
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  color: #ffffff;
  background: var(--green-600);
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.detail-meta span {
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 700;
}

.one-line {
  margin: 1rem 0 0;
  color: var(--stone-700);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.article-copy h2,
.sidebar-card h2 {
  margin: 0 0 0.8rem;
  color: var(--stone-800);
  font-size: 1.35rem;
}

.article-copy p {
  margin: 0;
  color: var(--stone-700);
  font-size: 1rem;
  line-height: 1.9;
}

.compact-title {
  margin-bottom: 1rem;
}

.detail-sidebar {
  position: sticky;
  top: 5.75rem;
  display: grid;
  gap: 1rem;
}

.sidebar-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  object-fit: cover;
  background: var(--stone-200);
}

.sidebar-card p {
  color: var(--stone-600);
  line-height: 1.7;
}

.info-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--stone-100);
  padding-bottom: 0.65rem;
}

.info-list span {
  color: var(--stone-500);
}

.info-list strong {
  color: var(--stone-800);
  text-align: right;
}

.site-footer {
  margin-top: 3rem;
  color: var(--stone-300);
  background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0;
}

.site-footer .brand-icon {
  width: 2.3rem;
  height: 2.3rem;
}

.site-footer .footer-brand strong {
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  color: #ffffff;
  font-size: 1rem;
}

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

.site-footer a,
.site-footer p,
.site-footer small {
  color: var(--stone-300);
}

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

.is-hidden {
  display: none !important;
}

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

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

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

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

@media (max-width: 820px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .mobile-menu-button {
    display: block;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-left: 0;
    border-top: 1px solid var(--stone-200);
    padding-top: 0.7rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.65rem 0;
  }

  .header-search {
    order: 4;
    width: 100%;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    min-height: 34rem;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 12vw, 4rem);
  }

  .section-title,
  .category-overview-head,
  .detail-title-row {
    align-items: start;
    flex-direction: column;
  }

  .feature-slab {
    border-radius: 1.4rem;
    padding: 1.5rem;
  }

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

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

  .rank-item {
    grid-template-columns: auto 4.4rem 1fr;
  }

  .rank-item img {
    width: 4.4rem;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 36rem;
  }

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

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

  .rank-item {
    grid-template-columns: auto 4rem 1fr;
    gap: 0.7rem;
  }

  .rank-copy em {
    white-space: normal;
  }

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