/* TVTRACKER_PERSON_PROFILE_FOUNDATION_027 */

.person-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.person-card-link:focus-visible {
  outline: 2px solid rgba(236, 157, 111, 0.95);
  outline-offset: 3px;
}

.person-profile-hero {
  display: grid;
  grid-template-columns:
    minmax(210px, 260px)
    minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.person-profile-portrait {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(213, 145, 111, 0.24),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.28);
}

.person-profile-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.person-profile-portrait > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 4rem;
  font-weight: 850;
}

.person-profile-copy {
  min-width: 0;
}

.person-profile-copy h1 {
  margin: 7px 0 17px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.person-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.person-profile-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted, #aaa3a1);
  font-size: 0.82rem;
}

.person-profile-summary {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted, #aaa3a1);
  line-height: 1.65;
}

.person-profile-summary strong {
  color: var(--text, #f5efec);
}

.person-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.person-imdb-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 12px;
  background: rgba(245, 197, 24, 0.07);
  color: rgba(255, 239, 178, 0.94);
  text-decoration: none;
}

.person-imdb-link img {
  width: 38px;
  height: auto;
}

.person-imdb-link span {
  font-size: 0.79rem;
  font-weight: 750;
}

.person-local-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.person-local-card {
  display: grid;
  grid-template-columns:
    92px
    minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.022)
    );
}

.person-local-poster {
  display: block;
  min-height: 145px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.person-local-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-local-poster > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted, #aaa3a1);
  font-weight: 850;
}

.person-local-copy {
  min-width: 0;
  padding: 13px;
}

.person-credit-state {
  display: flex;
  margin-bottom: 8px;
}

.person-credit-state span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--muted, #aaa3a1);
  font-size: 0.61rem;
  font-weight: 750;
}

.person-credit-state .is-followed {
  border-color: rgba(213, 145, 111, 0.28);
  background: rgba(213, 145, 111, 0.09);
  color: rgba(246, 190, 157, 0.96);
}

.person-local-copy h3 {
  margin: 0;
  line-height: 1.2;
}

.person-local-copy h3 a {
  color: var(--text, #f5efec);
  text-decoration: none;
}

.person-local-copy h3 a:hover {
  color: rgba(242, 178, 141, 0.98);
}

.person-credit-years {
  margin: 6px 0 10px;
  color: var(--muted, #aaa3a1);
  font-size: 0.72rem;
}

.person-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.person-role-list span {
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(222, 215, 212, 0.9);
  font-size: 0.68rem;
  line-height: 1.25;
}

.person-role-list small {
  margin-left: 3px;
  color: rgba(235, 165, 126, 0.95);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.person-role-empty {
  margin: 8px 0 0;
  color: var(--muted, #aaa3a1);
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .person-local-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .person-profile-hero {
    grid-template-columns:
      105px
      minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .person-profile-portrait {
    border-radius: 15px;
  }

  .person-profile-copy h1 {
    margin-top: 5px;
    font-size:
      clamp(1.65rem, 9vw, 2.6rem);
  }

  .person-profile-facts {
    gap: 6px;
  }

  .person-profile-facts span {
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .person-profile-summary,
  .person-profile-actions {
    grid-column: 1 / -1;
  }

  .person-profile-summary {
    margin-top: 13px;
  }

  .person-local-grid {
    grid-template-columns: 1fr;
  }

  .person-local-card {
    grid-template-columns:
      78px
      minmax(0, 1fr);
  }

  .person-local-poster {
    min-height: 124px;
  }
}

@media (max-width: 420px) {
  .person-profile-hero {
    grid-template-columns:
      90px
      minmax(0, 1fr);
  }

  .person-profile-copy h1 {
    font-size: 1.55rem;
  }
}

/* TVTRACKER_PERSON_EXTERNAL_FINAL_027 */
/* TVTRACKER_PERSON_EXTERNAL_CARDS_POLISH_027 */

.person-external-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.person-external-card {
  display: grid;
  grid-template-columns:
    96px
    minmax(0, 1fr);
  min-width: 0;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.018)
    );
  color: inherit;
  text-decoration: none;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.person-external-card:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 145, 111, 0.34);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.068),
      rgba(255, 255, 255, 0.025)
    );
}

.person-external-card:focus-visible {
  outline: 2px solid rgba(236, 157, 111, 0.95);
  outline-offset: 3px;
}

.person-external-poster {
  min-height: 154px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(213, 145, 111, 0.18),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.035);
}

.person-external-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-external-poster span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted, #aaa3a1);
  font-size: 1.2rem;
  font-weight: 850;
}

.person-external-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
}

.person-external-copy h3 {
  margin: 0;
  color: var(--text, #f5efec);
  font-size: 1rem;
  line-height: 1.25;
}

.person-external-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.person-external-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted, #aaa3a1);
  font-size: 0.6rem;
}

.person-role-list.compact {
  margin-top: 10px;
}

.person-role-list.compact span {
  font-size: 0.64rem;
}

.person-external-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
  color: rgba(236, 181, 148, 0.94);
  font-size: 0.7rem;
  font-weight: 780;
}

.person-external-open b {
  font-size: 1rem;
}

.person-external-warning {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(234, 177, 94, 0.25);
  border-radius: 13px;
  background: rgba(234, 177, 94, 0.07);
}

.person-credit-limit-note {
  margin: 16px 0 0;
  color: var(--muted, #aaa3a1);
  font-size: 0.75rem;
}

@media (max-width: 1080px) {
  .person-external-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .person-external-grid {
    grid-template-columns: 1fr;
  }

  .person-external-card {
    grid-template-columns:
      82px
      minmax(0, 1fr);
    min-height: 132px;
  }

  .person-external-poster {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .person-external-card {
    transition: none;
  }
}



/* TVTRACKER_PERSON_EXTERNAL_MOVIES_040 */
.person-external-original-title {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted, #aaa3a1);
  font-size: .7rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
