.team-detail-player__career-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
}

.team-detail-player__career-toggle {
  background: none;
  border: none;
  color: var(--color-black);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;

  transition: color 0.3s ease;
}

.team-detail-player__career-toggle:hover {
  color: var(--color-primary-hover);
}

.team-detail-player__career-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.team-detail-player__career {
  gap: 0;
  padding: 35px 0;
}

.team-detail-player__career-table-wrapper {
  padding: 20px 35px 0 35px;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: 4000px;
  transition: max-height 0.8s ease, padding-top 0.6s ease;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.team-detail-player__career-table-wrapper::-webkit-scrollbar {
  display: none;
}

.team-detail-player__career-table-wrapper.is-collapsed {
  max-height: 0;
  padding-top: 0;
}

.team-detail-player__career-toggle[aria-expanded="false"]
  .team-detail-player__career-toggle-icon {
  transform: rotate(180deg);
}

.team-detail-player__career-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.team-detail-player__career-table th,
.team-detail-player__career-table td {
  padding: 12px 4px;
  text-align: center;
  white-space: nowrap;
}

.team-detail-player__career-table th {
  padding-bottom: 20px;
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-300);
}

.team-detail-player__career-table
  th.team-detail-player__career-table__sortable
  span {
  position: relative;
  user-select: none;
}

.team-detail-player__career-table
  th.team-detail-player__career-table__sortable {
  cursor: pointer;
}

.team-detail-player__career-table
  th.team-detail-player__career-table__sortable
  span::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 0 4px 4px 4px;
  border-color: transparent;
  opacity: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.team-detail-player__career-table
  th.team-detail-player__career-table__sortable[data-sort-order="asc"]
  span::after {
  border-width: 4px 4px 0 4px;
  border-color: var(--color-primary) transparent transparent transparent;
  opacity: 1;
}

.team-detail-player__career-table
  th.team-detail-player__career-table__sortable[data-sort-order="desc"]
  span::after {
  border-color: transparent transparent var(--color-primary) transparent;
  opacity: 1;
}

.team-detail-player__career-table td {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-black);
}

.team-detail-player__career-table tbody tr {
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: translateY(0);
  opacity: 1;
}

.team-detail-player__career-table tbody tr.sortable-table__row--cascade {
  transform: translateY(12px);
  opacity: 0;
  transition: none;
}

.team-detail-player__career-table tbody {
  transition: opacity 0.3s ease;
}

.team-detail-player__career-table.sortable-table--sorting tbody {
  opacity: 0.75;
}

.team-detail-player__career-table tfoot td {
  border-top: 1px solid var(--color-gray-300);
}

.team-detail-player__career-table thead th:nth-child(1),
.team-detail-player__career-table tbody td:nth-child(1) {
  text-align: left;
  font-weight: var(--font-weight-normal);
}

.team-detail-player__career-table thead th:nth-child(2),
.team-detail-player__career-table tbody td:nth-child(2) {
  text-align: left;
  font-weight: var(--font-weight-normal);
  width: 20%;
}

.team-detail-player__career-table tfoot td {
  text-align: center;
}

.team-detail-player__career-table td .team-detail-player__career-season-suffix {
  font-weight: var(--font-weight-bold);
}

@media (max-width: 1024px) {
  .team-detail-player__career {
    padding: 20px 0;
  }

  .team-detail-player__career-table-wrapper {
    padding: 20px 20px 0 20px;
  }

  .team-detail-player__career-header {
    padding: 0 20px;
  }
}
