.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 color-mix(in srgb, var(--player-modal-primary-color, var(--tlfl-blue)) 14%, rgb(17 24 39 / 0.10));
  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::before {
  background: linear-gradient(90deg, var(--player-modal-primary-color, var(--tlfl-blue)), var(--player-modal-secondary-color, var(--tlfl-blue-dark)));
  border-radius: 10px 10px 0 0;
  content: "";
  height: 0.34rem;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

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

.player-profile-hero>* {
  position: relative;
  z-index: 1;
}

.player-profile-media {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.82)),
    linear-gradient(135deg, var(--player-modal-primary-color, #f3f4f6), var(--player-modal-secondary-color, #e5e7eb));
  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.6rem 0 0;
}

.player-profile-status {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0.15rem 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 {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  max-width: 100%;
}

.tlfl-team-user-contacts-multiple {
  align-items: stretch;
}

.tlfl-team-user-contact {
  align-content: start;
  background: rgb(255 255 255 / 0.78);
  border: 1px solid rgb(17 24 39 / 0.10);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(17 24 39 / 0.08);
  display: grid;
  gap: 0.24rem;
  margin: 0;
  max-width: min(100%, 20rem);
  min-width: min(100%, 15rem);
  padding: 0.55rem 0.7rem;
}

.tlfl-team-user-contact-single-detail {
  gap: 0.14rem;
}

.tlfl-team-user-contact span {
  display: block;
  min-width: 0;
}

.tlfl-team-user-name {
  color: #111827;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.tlfl-team-user-email,
.tlfl-team-user-phone {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlfl-team-user-email a {
  color: #12366f;
  text-decoration: none;
}

.tlfl-team-user-email a:hover {
  text-decoration: underline;
}

.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: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--team-primary-color, #1f2937) 14%, var(--tlfl-table-border));
  border-radius: 8px;
  box-shadow: 0 5px 16px rgb(15 23 42 / 0.06);
  margin: 0 0 1.5rem;
  overflow: hidden;
  position: relative;
}

.tlfl-team-section::before {
  background: linear-gradient(90deg, var(--team-primary-color, #1f2937), var(--team-secondary-color, var(--team-primary-color, #1f2937)));
  border-radius: 8px 8px 0 0;
  content: "";
  height: 0.35rem;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.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:
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-primary-color, #1f2937) 9%, #ffffff) 0%,
      #ffffff 72%);
  border-bottom: 1px solid color-mix(in srgb, var(--team-primary-color, #1f2937) 12%, #e2e8f0);
  border-radius: 0;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  padding: 0.85rem 1rem 0.68rem;
  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: var(--tlfl-table-header-bg);
  color: var(--tlfl-table-header-text);
  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:not(.tlfl-team-roster-table) th,
.tlfl-team-detail-table:not(.tlfl-team-roster-table) td {
  border-bottom: 1px solid var(--tlfl-table-border);
}

.tlfl-team-detail-table:not(.tlfl-team-roster-table) tbody tr:last-child td {
  border-bottom: 0;
}

.tlfl-team-detail-table tbody tr:nth-child(even) {
  background: var(--tlfl-table-row-alt);
}

.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),
.tlfl-team-active-roster-table.tlfl-team-active-roster-table th:nth-child(5) {
  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-long-term-reserve-table.tlfl-team-long-term-reserve-table th:nth-child(6),
.tlfl-team-long-term-reserve-table.tlfl-team-long-term-reserve-table td:nth-child(6) {
  text-align: center;
  width: 5.25rem;
}

@media (min-width: 761px) {
  .tlfl-team-roster-table .tlfl-team-player-points-cell {
    font-weight: 650;
  }

  .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) {
    padding-right: 0.45rem;
    width: 9.75rem;
  }

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

  .tlfl-team-long-term-reserve-table.tlfl-team-long-term-reserve-table th:nth-child(6),
  .tlfl-team-long-term-reserve-table.tlfl-team-long-term-reserve-table td:nth-child(6) {
    padding-right: 0;
    width: 5.25rem;
  }

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

.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: var(--tlfl-table-header-bg);
  border-bottom: 1px solid var(--tlfl-table-border);
  border-top: 1px solid var(--tlfl-table-border);
}

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

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

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

.tlfl-team-roster-table tbody tr:hover,
.tlfl-team-roster-table tbody tr:nth-child(even):hover {
  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 var(--tlfl-table-border);
  border-top: 1px solid var(--tlfl-table-border);
}

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

.tlfl-team-roster-table tbody td:nth-child(2) {
  border-left: 1px solid var(--tlfl-table-border);
  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 var(--tlfl-table-border);
}

.tlfl-team-status-details {
  min-width: 0;
  width: 100%;
}

.tlfl-team-status-details summary {
  cursor: default;
  display: block;
  list-style: none;
  max-width: 100%;
  min-width: 0;
  position: relative;
  width: 100%;
}

.tlfl-team-status-details-expandable summary {
  cursor: pointer;
}

.tlfl-team-status-details-expandable:not([open]) summary::after {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.44) 46%,
    rgb(255 255 255 / 0.9) 100%
  );
  bottom: 0;
  content: "";
  height: 2.25em;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.tlfl-team-status-details summary::-webkit-details-marker {
  display: none;
}

.tlfl-team-status-details summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--tlfl-blue);
  outline-offset: 2px;
}

.tlfl-team-status-summary-text {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.08;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.tlfl-team-status-details[open] .tlfl-team-status-summary-text {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

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

.tlfl-team-mobile-roster-position,
.tlfl-team-mobile-card-cell,
.tlfl-team-mobile-details-cell {
  display: none;
}

.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 var(--tlfl-table-border);
  margin: 0;
  padding: 0.65rem 0.75rem;
}

.tlfl-team-protection-spots-section {
  border-color: color-mix(in srgb, var(--team-primary-color, #1f2937) 14%, var(--tlfl-table-border));
  border-radius: 8px;
}

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

.tlfl-team-protection-spots-meta>span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  width: auto;
}

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

.tlfl-team-protection-spots-count {
  align-items: center;
  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;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: 2rem;
}

.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: var(--tlfl-table-row-hover);
}

.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;
}

.tlfl-team-schedule-result-cell {
  white-space: nowrap;
}

.tlfl-team-schedule-result {
  align-items: center;
  display: inline-flex;
  gap: 0.38rem;
}

.tlfl-team-schedule-result-status {
  align-items: center;
  display: inline-flex;
  flex: 0 0 0.75rem;
  justify-content: center;
  width: 0.75rem;
}

.tlfl-team-schedule-result-marker {
  display: inline-block;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.tlfl-team-schedule-result-marker-win {
  color: #15803d;
}

.tlfl-team-schedule-result-marker-loss {
  color: #b42318;
}

.tlfl-team-schedule-result-marker-tie {
  color: #111111;
}

.tlfl-team-schedule-live-indicator {
  align-items: center;
  color: #9d1d1d;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  gap: 0.25rem;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
  width: 100%;
}

.tlfl-team-schedule-live-dot {
  animation: tlfl-team-schedule-live-pulse 1.4s ease-in-out infinite;
  background: #dc2626;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(220 38 38 / 0.35);
  display: inline-block;
  height: 0.48rem;
  width: 0.48rem;
}

@keyframes tlfl-team-schedule-live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(220 38 38 / 0.35);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 0 0.22rem rgb(220 38 38 / 0);
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlfl-team-schedule-live-dot {
    animation: none;
  }
}

.tlfl-team-current-history-separator {
  background: linear-gradient(
    90deg,
    var(--team-primary-color, #1f2937),
    color-mix(in srgb, var(--team-primary-color, #1f2937) 62%, var(--team-secondary-color, var(--team-primary-color, #1f2937))),
    var(--team-secondary-color, var(--team-primary-color, #1f2937))
  );
  border-radius: 999px;
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.16);
  height: 2px;
  margin: 2.25rem 0 1.15rem;
}

.tlfl-team-past-seasons-section {
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
  margin-top: 0;
}

.tlfl-team-past-seasons-table-shell {
  overflow-x: visible;
}

.tlfl-team-past-seasons-table {
  table-layout: fixed;
  width: 100%;
}

.tlfl-team-past-seasons-year-col {
  width: 5.5rem;
}

.tlfl-team-past-seasons-owner-col {
  width: var(--past-seasons-owner-column-width, 18rem);
}

.tlfl-team-past-seasons-record-col {
  width: 6.5rem;
}

.tlfl-team-past-seasons-result-col {
  width: auto;
}

.tlfl-team-past-seasons-table th,
.tlfl-team-past-seasons-table td {
  vertical-align: middle;
  word-break: normal;
}

.tlfl-team-past-seasons-table th:nth-child(1),
.tlfl-team-past-seasons-table td:nth-child(1) {
  text-align: center;
  white-space: nowrap;
  width: 5.5rem;
}

.tlfl-team-past-seasons-table th:nth-child(2),
.tlfl-team-past-seasons-table td:nth-child(2) {
  text-align: left;
  white-space: nowrap;
  width: var(--past-seasons-owner-column-width, 18rem);
}

.tlfl-team-past-seasons-table th:nth-child(3),
.tlfl-team-past-seasons-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
  width: 6.5rem;
}

.tlfl-team-past-seasons-owner-name-mobile {
  display: none;
}

.tlfl-team-past-seasons-owner-name-line {
  white-space: nowrap;
}

.tlfl-team-past-seasons-record-label-mobile {
  display: none;
}

.tlfl-team-past-seasons-table th:nth-child(4),
.tlfl-team-past-seasons-table td:nth-child(4) {
  padding-left: 1rem;
  text-align: left;
  width: auto;
}

.tlfl-team-past-seasons-result-mobile {
  display: none;
}

.tlfl-team-past-seasons-table tbody tr.tlfl-team-past-seasons-champion-row {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-primary-color, #1f2937) 10%, #ffffff) 0%,
      color-mix(in srgb, var(--team-secondary-color, var(--team-primary-color, #1f2937)) 8%, #ffffff) 100%);
}

.tlfl-team-past-seasons-champion-row td {
  font-weight: 800;
}

.tlfl-team-past-seasons-champion-row td:first-child {
  box-shadow: inset 0.28rem 0 0 var(--team-primary-color, #1f2937);
}

.tlfl-team-past-seasons-empty-row td {
  color: #64748b;
  font-weight: 700;
  text-align: center;
}

.tlfl-team-past-seasons-actions {
  background: color-mix(in srgb, var(--team-primary-color, #1f2937) 3%, #ffffff);
  border-top: 1px solid color-mix(in srgb, var(--team-primary-color, #1f2937) 12%, var(--tlfl-table-border));
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 0.75rem;
}

.tlfl-team-past-seasons-toggle {
  align-items: center;
  background: #ffffff;
  border-color: color-mix(in srgb, var(--team-primary-color, #1f2937) 46%, #94a3b8);
  border-width: 2px;
  border-radius: 999px;
  color: #111827;
  font-size: 0.82rem;
  justify-content: center;
  line-height: 1;
  min-height: 2rem;
  padding: 0.42rem 0.78rem;
}

@media (hover: hover) and (pointer: fine) {
  .tlfl-team-past-seasons-toggle:hover:not(:disabled) {
    background: color-mix(in srgb, var(--team-primary-color, #1f2937) 14%, #ffffff);
    border-color: color-mix(in srgb, var(--team-primary-color, #1f2937) 60%, #64748b);
    color: #111827;
    transform: none;
  }
}

@media (hover: none) {
  .tlfl-team-past-seasons-toggle:hover:not(:disabled) {
    background: #ffffff;
    border-color: color-mix(in srgb, var(--team-primary-color, #1f2937) 46%, #94a3b8);
    color: #111827;
    transform: none;
  }

  .tlfl-team-past-seasons-toggle:active:not(:disabled) {
    background: color-mix(in srgb, var(--team-primary-color, #1f2937) 10%, #ffffff);
    border-color: color-mix(in srgb, var(--team-primary-color, #1f2937) 56%, #64748b);
    color: #111827;
  }
}

.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;
  }

  .tlfl-team-roster-column,
  .tlfl-team-draft-picks-column {
    display: contents;
  }

  .tlfl-team-current-history-separator {
    order: 998;
  }

  .tlfl-team-past-seasons-section {
    order: 999;
  }

  .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;
  }
}
