.player-profile-hero {
  align-items: center;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0.98) 0%, rgb(255 255 255 / 0.92) 56%, rgb(255 255 255 / 0.78) 100%),
    linear-gradient(135deg, var(--player-modal-primary-color, var(--tlfl-blue)) 0%, var(--player-modal-secondary-color, var(--tlfl-blue-dark)) 100%);
  border: 1px solid rgb(17 24 39 / 0.10);
  border-left: 0.45rem solid var(--player-modal-primary-color, var(--tlfl-blue));
  border-radius: 10px;
  box-shadow: 0 12px 28px rgb(17 24 39 / 0.10);
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(13.5rem, 18rem) minmax(0, 1fr) minmax(19rem, 31rem);
  margin: 0 0 1.5rem;
  min-height: 14rem;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.player-profile-hero::after {
  background: var(--player-modal-primary-color, var(--tlfl-blue));
  content: "";
  inset: auto 1rem 0.75rem auto;
  opacity: 0.10;
  position: absolute;
  height: 5.5rem;
  transform: skewX(-24deg);
  width: 14rem;
}

.player-profile-media {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.76)),
    var(--player-modal-primary-color, #f3f4f6);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.42);
  min-height: 13.5rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.player-profile-media::before {
  background: var(--player-modal-secondary-color, #e5e7eb);
  content: "";
  inset: -1rem auto -1rem 28%;
  opacity: 0.40;
  position: absolute;
  transform: skewX(-26deg);
  width: 6rem;
}

.player-profile-team-logo {
  filter: saturate(0.95);
  height: 13rem;
  left: 50%;
  object-fit: contain;
  opacity: 0.18;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 17.5rem;
}

.player-profile-headshot {
  bottom: 0;
  height: min(15rem, 112%);
  left: 50%;
  object-fit: contain;
  object-position: bottom center;
  position: absolute;
  transform: translateX(-50%);
  width: 14.5rem;
}

.player-profile-injury-status {
  color: #b91c1c;
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.tlfl-team-profile-media {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tlfl-team-profile-media::before {
  left: 33%;
}

.tlfl-team-profile-logo {
  filter: drop-shadow(0 10px 18px rgb(17 24 39 / 0.18));
  height: 11.75rem;
  object-fit: contain;
  position: relative;
  width: 13.25rem;
  z-index: 1;
}

.tlfl-team-user-contacts {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.7rem;
}

.tlfl-team-user-contact {
  align-items: center;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.tlfl-team-user-contact span {
  align-items: center;
  display: inline-flex;
}

.tlfl-team-user-contact span+span::before {
  background: #9ca3af;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.28rem;
  margin-right: 0.45rem;
  width: 0.28rem;
}

.tlfl-team-profile-meta-row {
  align-items: center;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.tlfl-team-profile-meta-row span {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
  font-weight: 400;
}

.tlfl-team-profile-meta-row strong {
  color: #111827;
  font-weight: 700;
}

.tlfl-team-profile-meta-row span+span::before {
  background: #9ca3af;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.28rem;
  margin-right: 0.45rem;
  width: 0.28rem;
}

.tlfl-team-section {
  background: #ffffff;
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 -4px 14px rgb(17 24 39 / 0.08), 0 2px 8px rgb(17 24 39 / 0.06);
  margin: 0 0 1.5rem;
  overflow: hidden;
}

.tlfl-team-roster-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr);
}

.tlfl-team-roster-column,
.tlfl-team-draft-picks-column {
  min-width: 0;
}

.tlfl-team-section-header {
  background: var(--team-primary-color, #1f2937);
  border-radius: 10px 10px 0 0;
  color: var(--team-header-text-color, #ffffff);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

.tlfl-team-section-body {
  background: #ffffff;
  padding: 0;
}

.tlfl-team-detail-table {
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
  width: 100%;
}

.tlfl-team-detail-table th {
  background: #f3f4f6;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
  text-align: left;
  text-transform: uppercase;
}

.tlfl-team-detail-table td {
  min-height: 4.5rem;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.tlfl-team-detail-table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.tlfl-team-roster-table {
  font-size: 1.04rem;
  line-height: 1.12;
  table-layout: auto;
  width: 100%;
}

.tlfl-team-detail-table th:nth-child(1),
.tlfl-team-detail-table td:nth-child(1) {
  width: 4.75rem;
}

.tlfl-team-roster-table th:nth-child(1),
.tlfl-team-roster-table td:nth-child(1) {
  padding-right: 0.25rem;
  width: 3.85rem;
}

.tlfl-team-roster-table th:nth-child(2),
.tlfl-team-roster-table td:nth-child(2) {
  padding-left: 0.55rem;
  width: 13rem;
}

.tlfl-team-roster-table th:nth-child(3),
.tlfl-team-roster-table td:nth-child(3) {
  width: 3.25rem;
}

.tlfl-team-roster-table th:nth-child(4),
.tlfl-team-roster-table td:nth-child(4),
.tlfl-team-roster-table th:nth-child(5),
.tlfl-team-roster-table td:nth-child(5),
.tlfl-team-roster-table th:nth-child(6),
.tlfl-team-roster-table td:nth-child(6) {
  width: 4rem;
}

.tlfl-team-roster-table th:nth-child(7),
.tlfl-team-roster-table td:nth-child(7) {
  width: auto;
}

.tlfl-team-detail-table th:nth-child(3),
.tlfl-team-detail-table td:nth-child(3),
.tlfl-team-detail-table th:nth-child(4),
.tlfl-team-detail-table td:nth-child(4),
.tlfl-team-detail-table th:nth-child(5),
.tlfl-team-detail-table td:nth-child(5),
.tlfl-team-detail-table th:nth-child(6),
.tlfl-team-detail-table td:nth-child(6) {
  width: 5rem;
}

.tlfl-team-detail-table th:nth-child(7),
.tlfl-team-detail-table td:nth-child(7),
.tlfl-team-detail-table th:nth-child(9),
.tlfl-team-detail-table td:nth-child(9) {
  width: 6.5rem;
}

.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(1),
.tlfl-team-roster-table.tlfl-team-roster-table td:nth-child(1) {
  padding-right: 0.25rem;
  width: 3.85rem;
}

.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(2),
.tlfl-team-roster-table.tlfl-team-roster-table td:nth-child(2) {
  padding-left: 0.55rem;
  width: 13rem;
}

.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(3),
.tlfl-team-roster-table.tlfl-team-roster-table td:nth-child(3) {
  width: 3.25rem;
}

.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(4),
.tlfl-team-roster-table.tlfl-team-roster-table td:nth-child(4),
.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(5),
.tlfl-team-roster-table.tlfl-team-roster-table td:nth-child(5),
.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(6),
.tlfl-team-roster-table.tlfl-team-roster-table td:nth-child(6) {
  width: 4rem;
}

.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(6) {
  white-space: nowrap;
}

.tlfl-team-active-roster-table.tlfl-team-active-roster-table th:nth-child(7),
.tlfl-team-active-roster-table.tlfl-team-active-roster-table td:nth-child(7) {
  padding-left: 2.15rem;
}

.tlfl-team-ir-roster-table.tlfl-team-ir-roster-table th:nth-child(6),
.tlfl-team-ir-roster-table.tlfl-team-ir-roster-table td:nth-child(6) {
  text-align: left;
  white-space: nowrap;
  width: 13rem;
}

.tlfl-team-roster-table.tlfl-team-roster-table th:nth-child(7),
.tlfl-team-roster-table.tlfl-team-roster-table td:nth-child(7) {
  width: auto;
}

.tlfl-team-player-headshot-cell img {
  display: block;
  height: 3.5rem;
  object-fit: contain;
  width: 3.5rem;
}

.tlfl-team-roster-table th {
  font-size: 0.9rem;
  line-height: 1.1;
  padding-bottom: 0.42rem;
  padding-top: 0.42rem;
}

.tlfl-team-roster-table td {
  height: 3.56rem;
  line-height: 1.12;
  min-height: 3rem;
  padding-bottom: 0.28rem;
  padding-top: 0.28rem;
}

.tlfl-team-roster-table th,
.tlfl-team-roster-table td {
  text-align: center;
}

.tlfl-team-roster-table th:nth-child(2),
.tlfl-team-roster-table td:nth-child(2),
.tlfl-team-roster-table th:nth-child(7),
.tlfl-team-roster-table td:nth-child(7) {
  text-align: left;
}

.tlfl-team-roster-table .tlfl-team-player-headshot-cell img {
  height: 3rem;
  margin-left: auto;
  margin-right: auto;
  width: 3rem;
}

.tlfl-team-roster-table {
  border-collapse: separate;
  border-spacing: 0 0.45rem;
  padding: 0.15rem 0.75rem 0.65rem;
}

.tlfl-team-roster-table thead th {
  background: #f3f6fa;
  border-bottom: 1px solid #dbe4f0;
  border-top: 1px solid #dbe4f0;
}

.tlfl-team-roster-table thead th:first-child {
  border-left: 1px solid #dbe4f0;
  border-radius: 8px 0 0 8px;
}

.tlfl-team-roster-table thead th:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid #dbe4f0;
}

.tlfl-team-roster-table tbody tr,
.tlfl-team-roster-table tbody tr:nth-child(even) {
  background: transparent;
}

.tlfl-team-roster-table .tlfl-team-player-headshot-cell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0.65rem 0 0.2rem;
  position: relative;
  width: 4.8rem;
}

.tlfl-team-player-headshot-frame,
.tlfl-team-player-headshot-spacer {
  display: block;
  height: 3.65rem;
  width: 3.65rem;
}

.tlfl-team-player-headshot-frame {
  background: #eef2f7;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgb(17 24 39 / 0.2), 0 0 0 1px rgb(17 24 39 / 0.08);
  overflow: hidden;
}

.tlfl-team-player-headshot-spacer {
  opacity: 0;
}

.tlfl-team-player-headshot-link {
  display: block;
  height: 100%;
  width: 100%;
}

.tlfl-team-player-headshot-link:focus-visible {
  border-radius: 50%;
  outline: 3px solid var(--tlfl-blue);
  outline-offset: 2px;
}

.tlfl-team-roster-table .tlfl-team-player-headshot-frame img {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.tlfl-team-roster-table tbody td:not(.tlfl-team-player-headshot-cell) {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

.tlfl-team-roster-table tbody tr:nth-child(even) td:not(.tlfl-team-player-headshot-cell) {
  background: #f8fafc;
}

.tlfl-team-roster-table tbody td:nth-child(2) {
  border-left: 1px solid #e5e7eb;
  border-radius: 8px 0 0 8px;
}

.tlfl-team-roster-table tbody td:nth-child(7) {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid #e5e7eb;
}

.tlfl-team-player-name-with-injury {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tlfl-team-player-injury-status {
  color: #b91c1c;
  cursor: default;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tlfl-team-roster-table .tlfl-team-icon-button {
  height: 1.65rem;
  width: 1.65rem;
}

.tlfl-team-row-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
  white-space: nowrap;
}

.tlfl-team-row-actions form {
  display: inline-flex;
  margin: 0;
}

.tlfl-team-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2rem;
}

.tlfl-team-icon-button:hover {
  background: #f3f4f6;
}

.tlfl-team-ir-button {
  font-size: 0.75rem;
}

.tlfl-team-reserve-button {
  border-color: #a16207;
  color: #854d0e;
  font-size: 0.7rem;
}

.tlfl-team-reserve-button:hover {
  background: #fef3c7;
}

.tlfl-team-activate-button {
  border-color: #16a34a;
  color: #15803d;
  font-size: 1.2rem;
}

.tlfl-team-activate-button:hover {
  background: #dcfce7;
}

.tlfl-team-remove-button {
  border-color: #dc2626;
  color: #dc2626;
  font-size: 1.25rem;
}

.tlfl-team-remove-button:hover {
  background: #fee2e2;
}

.tlfl-team-draft-picks-table th:nth-child(1),
.tlfl-team-draft-picks-table td:nth-child(1) {
  width: auto;
}

.tlfl-team-draft-picks-table {
  font-size: 1.04rem;
  line-height: 1.12;
}

.tlfl-team-draft-picks-meta {
  border-top: 1px solid #e5e7eb;
  margin: 0;
  padding: 0.65rem 0.75rem;
}

.tlfl-team-protection-spots-section {
  border: 1px solid rgb(31 85 171 / 0.16);
  border-top: 0.35rem solid var(--team-primary-color, #1f2937);
  border-radius: 8px;
}

.tlfl-team-protection-spots-meta {
  background: #f8fafc;
  margin: 0;
  padding: 0.75rem 1rem;
}

.tlfl-team-protection-spots-meta>span {
  width: auto;
}

.tlfl-team-protection-spots-meta strong {
  font-size: 0.85rem;
  text-transform: uppercase;
}

.tlfl-team-protection-spots-count {
  background: var(--team-primary-color, #1f2937);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgb(17 24 39 / 0.18);
  color: var(--team-header-text-color, #ffffff);
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-width: 1.75rem;
  padding: 0.15rem 0.55rem;
  text-align: center;
}

.tlfl-team-draft-picks-column .tlfl-team-detail-table {
  table-layout: auto;
}

.tlfl-team-schedule-table th:nth-child(1),
.tlfl-team-schedule-table td:nth-child(1) {
  width: 4.5rem;
}

.tlfl-team-schedule-clickable-row {
  cursor: pointer;
}

.tlfl-team-schedule-clickable-row:hover {
  background: rgb(31 85 171 / 0.08);
}

.tlfl-team-schedule-opponent {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  min-width: 0;
  white-space: nowrap;
}

.tlfl-team-schedule-opponent img {
  flex: 0 0 auto;
  height: 1.5rem;
  object-fit: contain;
  width: 1.5rem;
}

.tlfl-team-schedule-opponent span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tlfl-team-schedule-bye {
  font-weight: 800;
  text-align: center;
}

.player-profile-summary h1 {
  color: #111827;
  font-size: clamp(1.9rem, 3.35vw, 3rem);
  font-weight: 800;
  line-height: 0.98;
  margin: 0 0 0.85rem;
  max-width: 100%;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-profile-summary h1::after {
  display: none;
}

.player-profile-summary {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.player-profile-meta {
  align-items: center;
  color: #2f3a45;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  max-width: 100%;
}

.player-profile-meta img {
  flex: 0 0 auto;
  height: 1.25rem;
  object-fit: contain;
  width: 1.25rem;
}

.player-profile-meta span+span::before {
  color: #9ca3af;
  content: "|";
  margin-right: 0.4rem;
}

.player-profile-nfl-team {
  color: #4b5563;
  font-weight: 700;
  margin: 0;
}

.player-profile-stats-panel {
  border-left: 1px solid #e5e7eb;
  min-width: 0;
  padding-left: 1.75rem;
  position: relative;
  z-index: 1;
}

.player-profile-stats {
  background: #ffffff;
  border: 1px solid rgb(17 24 39 / 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgb(17 24 39 / 0.08);
  overflow: hidden;
}

.player-profile-stats h2 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  padding: 0.55rem 0.9rem;
  text-align: center;
  text-transform: uppercase;
}

.player-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  padding: 0.85rem 1.1rem 0.95rem;
}

.player-profile-stat {
  text-align: center;
}

.player-profile-stat-label,
.player-profile-stat-rank {
  color: #4b5563;
  display: block;
  font-size: 0.85rem;
}

.player-profile-stat strong {
  color: #111827;
  display: block;
  font-size: 2.25rem;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .player-profile-hero {
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
  }

  .tlfl-team-roster-layout {
    grid-template-columns: 1fr;
  }

  .player-profile-stats-panel {
    border-left: 0;
    grid-column: 1 / -1;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .player-profile-hero {
    gap: 1rem;
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .player-profile-summary {
    width: auto;
  }

  .player-profile-summary h1 {
    white-space: normal;
  }

  .player-profile-media {
    min-height: 13rem;
  }
}
