/* Talent selection: compact inline profiles and a wider desktop detail column. */
.talent-page .talent-board {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.talent-list { position: sticky; top: 102px; min-width: 0; }
.talent-page .talent-list .board-title { margin-bottom: 8px; font-size: 20px; }
.talent-list-hint { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.talent-page .talent-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.talent-choice-heading { margin: 0; font: inherit; }
.talent-page .profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-height: 0;
  gap: 14px;
  padding: 16px 28px 16px 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
  transform: none;
  transition: border-color .18s, background-color .18s;
}
.talent-page .profile-card:hover { transform: none; background-color: rgba(76,154,163,.12); }
.talent-page .profile-card.active { border-color: var(--orange); background-color: rgba(245,160,0,.055); }
.talent-page .profile-card:focus-visible,
.talent-close:focus-visible,
.talent-page .works-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.talent-page .profile-card img { width: 76px; height: 96px; border-radius: 7px; }
.talent-card-body { display: block; min-width: 0; }
.talent-card-name { display: block; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.talent-page .profile-card .talent-romaji { margin: 4px 0 9px; font-size: 11px; line-height: 1.4; }
.talent-page .profile-card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.talent-page .profile-card .tags span { font-size: 10px; line-height: 1.4; padding: 3px 5px; }
.talent-card-action { display: block; margin-top: 10px; color: var(--teal2); font-size: 12px; font-weight: 800; line-height: 1.5; }
.talent-page .profile-card.active .talent-card-action { color: var(--orange); }
.talent-choice-arrow { position: absolute; right: 12px; top: 50%; color: var(--teal2); font-size: 25px; line-height: 1; transform: translateY(-50%); }
.talent-detail-slot { min-width: 0; }
.talent-page .selected-panel { min-width: 0; padding: 26px; border-radius: 14px; }
.talent-page .selected-panel[hidden] { display: none; }
.talent-page .talent-detail-label { margin: 0 0 18px; color: var(--teal2); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.talent-identity { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 22px; align-items: center; }
.talent-board .selected-panel #selectedTalentImage { width: 104px; height: 130px !important; margin: 0; border-radius: 8px; background: #fff; object-fit: contain !important; }
.talent-board .selected-panel #selectedTalentImage.is-default-talent,
.talent-page .profile-card img.is-default-talent { background: #07131b; }
.talent-page .selected-panel h2 { margin: 0 0 8px; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.3; }
.talent-page .selected-panel .talent-romaji { margin: 0 0 8px; color: var(--teal2); font-size: 13px; line-height: 1.5; }
.talent-page #selectedTalentRoles { margin: 0; font-size: 13px; }
.talent-samples { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.talent-page .selected-panel h3 { margin: 0 0 8px; color: #fff; font-size: 18px; line-height: 1.5; }
.talent-page .talent-sample-hint { margin: 0 0 14px; font-size: 13px; }
.talent-page .audio-player { display: grid; gap: 10px; }
.talent-page .audio { display: block; min-width: 0; padding: 12px 14px; }
.talent-page .audio-title { display: block; width: 100%; margin-bottom: 8px; color: var(--teal2); font-size: 13px; font-weight: 800; line-height: 1.5; white-space: normal; }
.talent-page .audio audio { display: block; width: 100%; max-width: 100%; }
.talent-about { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.talent-page #selectedTalentSummary { margin: 0; line-height: 1.85; }
.talent-page #selectedTalentTags { margin: 14px 0 0; }
.talent-credits { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.talent-page .talent-credits > h3 { margin-bottom: 14px; }
.talent-credits .work-category:last-child { margin-bottom: 0; }
.talent-close { display: none; }
.talent-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1023px) {
  .talent-page .talent-section { padding-block: 30px; }
  .talent-page .talent-board { display: block; }
  .talent-list { position: static; }
  .talent-page .talent-grid { gap: 12px; }
  .talent-page .profile-card { padding: 15px 36px 15px 15px; border-radius: 12px; }
  .talent-page .profile-card.active { border-radius: 12px 12px 0 0; }
  .talent-choice-arrow { transform: translateY(-50%) rotate(90deg); }
  .talent-page .profile-card.active .talent-choice-arrow { transform: translateY(-50%) rotate(-90deg); color: var(--orange); }
  .talent-choice .selected-panel { border-radius: 0 0 12px 12px; border-top: 0; border-color: rgba(245,160,0,.45); padding: 20px; }
  .talent-page .talent-detail-label { display: none; }
  .talent-identity { display: block; }
  .talent-board .selected-panel #selectedTalentImage { display: none; }
  .talent-page .selected-panel h2 { font-size: 24px; }
  .talent-samples { margin-top: 20px; padding-top: 18px; }
  .talent-page .talent-sample-hint { line-height: 1.7; }
  .talent-about { margin-top: 22px; padding-top: 18px; }
  .talent-close { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(76,154,163,.08); color: var(--teal2); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
  .talent-detail-slot:empty { display: none; }
}
@media (max-width: 420px) {
  .talent-page .profile-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 28px 14px 12px; }
  .talent-page .profile-card img { width: 64px; height: 82px; }
  .talent-card-name { font-size: 18px; }
  .talent-choice .selected-panel { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .talent-page .profile-card { transition: none; }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .talent-list { position: static; }
}
