/* ============ 8. Related body ============ */

#related-shows {
  padding: 1rem 0;
}

.home #related-shows { 
  padding:0;
}

.related-shows {
  background: #f2f2f2;
}

.related-shows-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;
}

.related-shows-grid li {
  position: relative;
  min-width: 0;
}

.related-shows-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 300 / 333;
  object-fit: cover;
}

.related-card {
  position: relative;
  display: block;
  overflow: hidden;
}

/* A two-tone ring (light inner + brand-blue outer) rather than relying
   on the browser's default outline — a single colour can vanish
   against a similarly-coloured show poster, and nothing here had a
   deliberate focus style before. */
.related-card:focus {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--tht-blue);
}

.related-card__title {
  display: none;
}

.related-card__hint {
  display: none;
}

@media (max-width: 639px) {

  .related-card.is-revealed .related-card__title {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    text-align: center;
    padding: 1em;
    background: rgba(0, 0, 0, 0.75);
    color: var(--white);
    font-weight: 600;
  }

  .related-card.is-revealed .related-card__hint {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.8;
  }
}

@media (min-width: 640px) {
  .related-shows-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .related-shows-grid img {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  .related-card__image {
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .related-card__title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em;
    background: rgba(0, 0, 0, 0.75);
    color: var(--white);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .related-card:hover .related-card__image,
  .related-card:focus .related-card__image {
    opacity: 0;
    transform: scale(1.06);
  }

  .related-card:hover .related-card__title,
  .related-card:focus .related-card__title {
    opacity: 1;
  }
}