/* Test host intentionally mirrors production; only title cards differ. */
.test-poster-cards .page-shell {
  position: relative;
  z-index: 1;
}

.test-poster-cards .test-title-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  flex: 0 0 220px;
  gap: 0;
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.test-poster-cards .test-title-card::before,
.test-poster-cards .test-title-card::after {
  display: none;
}

.test-poster-cards .home-poster-rail,
.test-poster-cards .home-rank-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5);
  grid-template-columns: none;
  align-items: start;
}

.test-poster-cards .home-poster-rail .test-title-card,
.test-poster-cards .home-rank-rail .test-title-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
}

.test-poster-cards .test-title-poster {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-image: var(--poster-image);
  background-size: cover;
  background-position: center;
  filter: saturate(.82);
  transition: transform .25s ease, filter .25s ease;
}

.test-poster-cards .test-title-poster::before {
  background-image: var(--poster-image);
}

.test-poster-cards .test-title-poster::after {
  display: none;
}

.test-poster-cards .test-title-card:hover,
.test-poster-cards .test-title-card:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.test-poster-cards .test-title-card:hover .test-title-poster,
.test-poster-cards .test-title-card:focus-visible .test-title-poster {
  transform: translateY(-7px);
  filter: saturate(1.05);
}

.test-poster-cards .test-title-card > .catalog-rating-badge {
  display: none;
}

.test-poster-cards .test-title-info {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 8px;
  padding-top: 14px;
  opacity: 1;
  transform: none;
  text-shadow: none;
}

.test-poster-cards .test-title-info .test-title-number {
  grid-row: 1 / 3;
  color: var(--muted);
  font: 500 11px ui-monospace, monospace;
}

.test-poster-cards .test-title-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.test-poster-cards .test-title-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.test-poster-cards .home-spotlight-rail .test-title-card {
  aspect-ratio: auto;
}

.test-poster-cards .catalog-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.test-poster-cards .catalog-card-cover {
  border-radius: 0;
  filter: saturate(.82);
  transition: transform .25s ease, filter .25s ease;
}

.test-poster-cards .catalog-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.test-poster-cards .catalog-card:hover .catalog-card-cover {
  transform: translateY(-7px);
  filter: saturate(1.05);
}

.test-poster-cards .catalog-card-body {
  padding: 14px 0 0;
}

.test-poster-cards .catalog-card-body h3 {
  margin-top: 5px;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.test-poster-cards .catalog-chip-row {
  display: none;
}

@media (max-width: 640px) {
  .test-poster-cards .home-poster-rail,
  .test-poster-cards .home-rank-rail { grid-auto-columns: 158px; }
}
