/* TVTRACKER_SHOW_DETAIL_CAST_STRIP_027 */

.people-section {
  position: relative;
  overflow: hidden;
}

.people-section-head {
  align-items: flex-end;
  gap: 18px;
}

.people-section-head h2 {
  margin: 3px 0 0;
}

.people-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted, #aaa3a1);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.people-strip-shell {
  position: relative;
  margin-top: 18px;
}

.people-strip {
  display: flex;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color:
    rgba(213, 145, 111, 0.46)
    rgba(255, 255, 255, 0.05);
  overscroll-behavior-x: contain;
}

.people-strip::-webkit-scrollbar {
  height: 7px;
}

.people-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.people-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(213, 145, 111, 0.46);
}

.person-card {
  flex: 0 0 148px;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.person-card:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 145, 111, 0.38);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.person-card-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(213, 145, 111, 0.24),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.045);
}

.person-card-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 300ms ease;
}

.person-card:hover .person-card-portrait img {
  transform: scale(1.035);
}

.person-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 2.2rem;
  font-weight: 850;
  letter-spacing: -0.06em;
}


.person-card-copy {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 13px;
}

.person-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text, #f5efec);
  font-size: 0.9rem;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.person-card-role {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted, #aaa3a1);
  font-size: 0.76rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.person-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 3px;
}

.person-card-badges span {
  padding: 4px 7px;
  border: 1px solid rgba(213, 145, 111, 0.2);
  border-radius: 999px;
  background: rgba(213, 145, 111, 0.09);
  color: rgba(241, 189, 160, 0.92);
  font-size: 0.61rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.people-strip-nav {
  position: absolute;
  z-index: 3;
  top: 40%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(20, 15, 17, 0.88);
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    border-color 150ms ease;
}

.people-strip-nav span {
  margin-top: -3px;
  font-size: 2rem;
  line-height: 1;
}

.people-strip-nav:hover:not(:disabled) {
  border-color: rgba(213, 145, 111, 0.52);
  transform:
    translateY(-50%)
    scale(1.06);
}

.people-strip-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.people-strip-prev {
  left: 7px;
}

.people-strip-next {
  right: 7px;
}

@media (max-width: 760px) {
  .people-section-head {
    align-items: center;
  }

  .people-strip {
    gap: 11px;
    margin-right: -14px;
    padding-right: 14px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .people-strip::-webkit-scrollbar {
    display: none;
  }

  .person-card {
    flex-basis: 122px;
    border-radius: 14px;
  }

  .person-card-copy {
    min-height: 102px;
    gap: 5px;
    padding: 10px;
  }

  .person-card-copy strong {
    font-size: 0.82rem;
  }

  .person-card-role {
    font-size: 0.69rem;
  }

  .person-card-badges span {
    padding: 3px 6px;
    font-size: 0.56rem;
  }

  .people-strip-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .people-strip {
    scroll-behavior: auto;
  }

  .person-card,
  .person-card-portrait img,
  .people-strip-nav {
    transition: none;
  }
}
