/*
  Live UI overrides.
  Künftige kleinere Frontend-Anpassungen sollen bevorzugt hier landen,
  damit der Kern aus index.html, app.js und styles.css nicht mehr komplett
  auf das Live-System kopiert werden muss.
*/

.kicker-ui #view-kicker-test #kickerTestApplyLog,
.kicker-ui #view-kicker-test #kickerTestPenaltyLog,
.kicker-ui #view-kicker-test #kickerTestSwapLog {
  color: #f5f7ff !important;
}

.kms-floating-fixtures-dock {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: none;
}

.kms-floating-fixtures-dock.visible {
  display: block;
}

.kms-floating-fixtures-dock .lineup-role-fixtures {
  margin: 0;
}

.kms-fixtures-source-hidden {
  visibility: hidden;
}

@media (min-width: 1700px) {
  #dashboardLineupBoard.lineup-board {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    grid-template-columns: minmax(680px, 760px) minmax(360px, 460px) minmax(220px, 280px);
    column-gap: 10px;
    justify-content: center;
  }

  #dashboardLineupBoard .lineup-main,
  #dashboardLineupBoard .lineup-side,
  #dashboardLineupBoard .lineup-side-fixtures {
    width: 100%;
    max-width: 100%;
  }
}

.spieltag-edt-embed {
  margin: 8px 0 14px;
}

.spieltag-edt-embed .panel:first-child {
  margin-top: 0;
}

.spieltag-edt-embed .kms-edt-controls-embedded {
  justify-content: flex-start;
}

.spieltag-subtabs {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 16px;
  margin-left: auto;
  margin-right: 0;
  padding: 7px;
  border: 1px solid rgba(74, 90, 122, 0.7);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(18, 24, 37, 0.94) 0%, rgba(11, 16, 27, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.spieltag-subtab {
  border: 1px solid rgba(74, 90, 122, 0.38);
  border-radius: 999px;
  padding: 12px 22px;
  min-width: 158px;
  background: rgba(255, 255, 255, 0.02);
  color: #aebbd4;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.spieltag-subtab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(105, 124, 161, 0.48);
  color: #eef3ff;
}

.spieltag-subtab.is-active {
  background: linear-gradient(180deg, #ff4657 0%, #c31528 100%);
  border-color: rgba(255, 205, 209, 0.96);
  color: #fff8f8;
  text-shadow: 0 1px 0 rgba(88, 6, 16, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 92, 110, 0.2),
    0 12px 24px rgba(133, 10, 22, 0.34);
}

.sidebar .nav .nav-btn[data-view="spieltag"],
.sidebar .nav .nav-btn[data-view="spieltag"]:hover,
.sidebar .nav .nav-btn[data-view="spieltag"].active,
.spieltag-subtab,
.spieltag-subtab:hover,
.spieltag-subtab.is-active {
  transform: none !important;
}

.sidebar .nav .nav-btn[data-view="spieltag"] {
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease !important;
  will-change: auto;
}

.spieltag-subtab-panel {
  display: none;
}

.spieltag-subtab-panel.is-active {
  display: block;
}

#spieltagEdtEmbedHost > .panel:first-child {
  display: none;
}

@media (max-width: 720px) {
  .spieltag-subtabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    justify-content: stretch;
  }

  .spieltag-subtab {
    min-width: 0;
    width: 100%;
    padding: 11px 14px;
    font-size: 0.94rem;
  }
}

@media (max-width: 720px) {
  #view-rangliste .rangliste-grid > .rang-card:nth-child(2) {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .sheet-card-grid {
    justify-items: center;
  }

  .sheet-card-metric,
  .sheet-column-entry {
    width: min(100%, 420px);
  }

  .kicker-ui #view-rangliste .rang-mobile-metrics {
    justify-items: center;
  }

  .kicker-ui #view-rangliste .rang-mobile-metric {
    width: min(100%, 220px);
  }

  .kicker-ui #view-rangliste .rang-inline-toggle {
    width: auto;
    min-width: 0;
    padding-left: 18px;
    padding-right: 18px;
    margin-top: 6px;
  }
}

.kicker-ui #view-rangliste .rang-card:first-child .table-wrap.compact {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  overflow-x: visible;
  overflow-y: visible;
}

.kicker-ui #view-rangliste .rang-card:first-child {
  width: fit-content;
  max-width: 100%;
  overflow: visible;
}

.kicker-ui #view-rangliste .rangliste-grid {
  grid-template-columns: fit-content(100%) fit-content(100%) fit-content(100%);
  align-items: start;
  justify-content: start;
}

.kicker-ui #view-rangliste .rang-card:nth-child(2) {
  width: fit-content;
  max-width: 100%;
}

.kicker-ui #view-rangliste .rang-card:nth-child(2) .table-wrap.compact {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  overflow-x: auto;
}

.kicker-ui #view-rangliste .kms-rang-pps-excel-card {
  width: fit-content;
  max-width: 100%;
}

.kicker-ui #view-rangliste .kms-rang-pps-excel-card-body {
  display: grid;
  gap: 8px;
  width: fit-content;
}

.kicker-ui #view-rangliste .kms-rang-pps-side-section {
  width: fit-content;
}

.kicker-ui #view-rangliste .kms-rang-pps-mobile-list {
  display: none;
}

.kicker-ui #view-rangliste .kms-rang-pps-side-section .table-wrap.compact {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

.kicker-ui #view-rangliste .kms-rang-pps-side-table {
  width: auto;
  border-collapse: collapse;
}

.kicker-ui #view-rangliste .kms-rang-pps-side-table th,
.kicker-ui #view-rangliste .kms-rang-pps-side-table td {
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #344055;
}

.kicker-ui #view-rangliste .kms-rang-pps-side-table th {
  font-size: 0.76rem;
  font-weight: 800;
}

.kicker-ui #view-rangliste .kms-rang-pps-side-table td {
  font-size: 0.78rem;
  font-weight: 700;
}

.kicker-ui #view-rangliste .kms-rang-pps-side-table tbody tr:last-child td {
  border-bottom: 0;
}

.kicker-ui #view-rangliste .rang-pps-table {
  width: 300px;
  min-width: 0;
  table-layout: fixed;
}

.kicker-ui #view-rangliste .rang-pps-table th:first-child,
.kicker-ui #view-rangliste .rang-pps-table td:first-child {
  width: 120px;
  min-width: 120px;
  text-align: left !important;
  padding-left: 12px;
  padding-right: 8px;
}

.kicker-ui #view-rangliste .rang-pps-table th:nth-child(2),
.kicker-ui #view-rangliste .rang-pps-table td:nth-child(2),
.kicker-ui #view-rangliste .rang-pps-table th:nth-child(3),
.kicker-ui #view-rangliste .rang-pps-table td:nth-child(3) {
  width: 90px;
  min-width: 90px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

.kicker-ui #view-rangliste .kms-rang-daywins-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(66, 81, 111, 0.7);
}

.kicker-ui #view-rangliste .kms-rang-daywins-head,
.kicker-ui #view-rangliste .kms-rang-daywins-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.kicker-ui #view-rangliste .kms-rang-daywins-head {
  margin-bottom: 8px;
  color: #96a7c6;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kicker-ui #view-rangliste .kms-rang-daywins-list {
  border: 1px solid #32415d;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 17, 28, 0.82);
}

.kicker-ui #view-rangliste .kms-rang-daywins-row {
  padding: 10px 12px;
  border-bottom: 1px solid #2d3950;
  color: #f4f7ff;
}

.kicker-ui #view-rangliste .kms-rang-daywins-row:last-child {
  border-bottom: 0;
}

.kicker-ui #view-rangliste .kms-rang-daywins-row span {
  min-width: 0;
}

.kicker-ui #view-rangliste .kms-rang-daywins-row strong {
  font-size: 1rem;
}

.kicker-ui #view-rangliste .kms-rang-half-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(66, 81, 111, 0.7);
  width: fit-content;
  max-width: 100%;
}

.kicker-ui #view-rangliste .kms-rang-half-head,
.kicker-ui #view-rangliste .kms-rang-half-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 72px 72px 72px;
  gap: 8px;
  align-items: center;
}

.kicker-ui #view-rangliste .kms-rang-half-head {
  margin-bottom: 8px;
  color: #96a7c6;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kicker-ui #view-rangliste .kms-rang-half-head span:nth-child(2),
.kicker-ui #view-rangliste .kms-rang-half-head span:nth-child(3),
.kicker-ui #view-rangliste .kms-rang-half-head span:nth-child(4),
.kicker-ui #view-rangliste .kms-rang-half-row strong {
  text-align: center;
  justify-self: center;
  width: 72px;
}

.kicker-ui #view-rangliste .kms-rang-half-list {
  border: 1px solid #32415d;
  border-radius: 14px;
  overflow: visible;
  background: rgba(12, 17, 28, 0.82);
  width: fit-content;
  max-width: 100%;
}

.kicker-ui #view-rangliste .kms-rang-half-entry {
  border-bottom: 1px solid #2d3950;
}

.kicker-ui #view-rangliste .kms-rang-half-entry:last-child {
  border-bottom: 0;
}

.kicker-ui #view-rangliste .kms-rang-half-row {
  padding: 10px 12px;
  border-bottom: 1px solid #2d3950;
  color: #f4f7ff;
}

.kicker-ui #view-rangliste .kms-rang-half-entry:last-child .kms-rang-half-row {
  border-bottom: 0;
}

.kicker-ui #view-rangliste .kms-rang-half-row span {
  min-width: 0;
}

.kicker-ui #view-rangliste .kms-rang-half-total-cell {
  position: relative;
  justify-self: center;
  width: 72px;
}

.kicker-ui #view-rangliste .kms-rang-half-row .kms-rang-half-toggle {
  appearance: none;
  border: 1px solid rgba(86, 108, 149, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(26, 34, 53, 0.96), rgba(16, 22, 35, 0.96));
  color: #f4f7ff;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  padding: 9px 8px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  text-align: center;
  justify-self: center;
  width: 72px;
}

.kicker-ui #view-rangliste .kms-rang-half-row .kms-rang-half-toggle:hover,
.kicker-ui #view-rangliste .kms-rang-half-row .kms-rang-half-toggle[aria-expanded="true"] {
  border-color: rgba(129, 160, 218, 0.9);
  background: linear-gradient(180deg, rgba(35, 47, 73, 0.98), rgba(20, 28, 44, 0.98));
}

.kicker-ui #view-rangliste .kms-rang-half-row strong {
  font-size: 1rem;
}

.kicker-ui #view-rangliste .kms-rang-half-detail {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 104px);
  gap: 8px;
  width: max-content;
  min-width: 0;
  padding: 10px;
  background: rgba(10, 15, 24, 0.96);
  border: 1px solid rgba(60, 76, 107, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.kicker-ui #view-rangliste .kms-rang-half-detail[hidden] {
  display: none !important;
}

.kicker-ui #view-rangliste .kms-rang-half-detail-item {
  border: 1px solid rgba(60, 76, 107, 0.8);
  border-radius: 10px;
  background: rgba(18, 25, 39, 0.9);
  padding: 8px 8px;
  text-align: center;
}

.kicker-ui #view-rangliste .kms-rang-half-detail-item span {
  display: block;
  color: #96a7c6;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.kicker-ui #view-rangliste .kms-rang-half-detail-item strong {
  display: block;
  color: #f4f7ff;
  font-size: 0.92rem;
}

.kicker-ui #view-rangliste #rangDistPctBody {
  display: none;
}

.kicker-ui #view-rangliste .rang-pps-table th:nth-child(3),
.kicker-ui #view-rangliste .rang-pps-table td:nth-child(3),
.kicker-ui #view-rangliste .rang-pps-table tfoot th:nth-child(3),
.kicker-ui #view-rangliste .rang-pps-table tfoot td:nth-child(3) {
  display: none;
}

.kicker-ui #view-rangliste .rang-day-table {
  width: 350px;
  min-width: 0;
  table-layout: fixed;
}

.kicker-ui #view-rangliste .rang-day-breakdown-row td,
.kicker-ui #view-rangliste .rang-day-breakdown {
  overflow: visible;
}

.kicker-ui #view-rangliste .rang-day-table th:first-child,
.kicker-ui #view-rangliste .rang-day-table td:first-child {
  width: 170px;
  min-width: 170px;
  text-align: left !important;
  padding-left: 12px;
  padding-right: 8px;
}

.kicker-ui #view-rangliste .rang-day-table td.points-col {
  text-align: center;
  width: 180px;
  min-width: 180px;
  padding-left: 4px;
  padding-right: 4px;
}

.kicker-ui #view-rangliste .rang-day-table th.points-col {
  width: 180px;
  min-width: 180px;
}

.kicker-ui #view-rangliste .rang-day-table td.points-col .rang-inline-toggle-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 150px);
  min-width: 0;
  padding: 16px 18px;
  text-align: center;
}

@media (min-width: 901px) {
  .kicker-ui #view-rangliste #ranglisteReport {
    display: grid;
    gap: 18px;
  }

  .kicker-ui #view-rangliste .rangliste-grid {
    grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.92fr) minmax(260px, 0.82fr);
    gap: 18px;
    align-items: stretch;
    justify-content: stretch;
  }

  .kicker-ui #view-rangliste .rang-card,
  .kicker-ui #view-rangliste .kms-rang-pps-excel-card {
    width: auto !important;
    max-width: none !important;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(63, 76, 103, 0.72);
    background:
      linear-gradient(180deg, rgba(18, 24, 37, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 18px 36px rgba(0, 0, 0, 0.22);
  }

  .kicker-ui #view-rangliste .rang-card h4,
  .kicker-ui #view-rangliste .kms-rang-pps-excel-card h4 {
    margin: 0 0 14px;
    color: #f7f9ff;
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .kicker-ui #view-rangliste .rang-card:first-child,
  .kicker-ui #view-rangliste .rang-card:first-child .table-wrap.compact,
  .kicker-ui #view-rangliste .rang-card:nth-child(2),
  .kicker-ui #view-rangliste .rang-card:nth-child(2) .table-wrap.compact,
  .kicker-ui #view-rangliste .kms-rang-pps-excel-card-body,
  .kicker-ui #view-rangliste .kms-rang-pps-side-section,
  .kicker-ui #view-rangliste .kms-rang-pps-side-section .table-wrap.compact {
    width: 100% !important;
    max-width: none !important;
    margin: 0;
  }

  .kicker-ui #view-rangliste .table-wrap.compact,
  .kicker-ui #view-rangliste .kms-rang-pps-side-section .table-wrap.compact {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #32415d;
    background: rgba(12, 17, 28, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .kicker-ui #view-rangliste .rang-day-table,
  .kicker-ui #view-rangliste .rang-pps-table,
  .kicker-ui #view-rangliste .kms-rang-pps-side-table {
    width: 100% !important;
    table-layout: fixed;
  }

  .kicker-ui #view-rangliste .rang-day-table th:first-child,
  .kicker-ui #view-rangliste .rang-day-table td:first-child {
    width: auto;
    min-width: 0;
  }

  .kicker-ui #view-rangliste .rang-day-table td.points-col,
  .kicker-ui #view-rangliste .rang-day-table th.points-col {
    width: 190px;
    min-width: 190px;
  }

  .kicker-ui #view-rangliste .rang-pps-table th:first-child,
  .kicker-ui #view-rangliste .rang-pps-table td:first-child {
    width: auto;
    min-width: 0;
  }

  .kicker-ui #view-rangliste .rang-pps-table th:nth-child(2),
  .kicker-ui #view-rangliste .rang-pps-table td:nth-child(2),
  .kicker-ui #view-rangliste .rang-pps-table th:nth-child(3),
  .kicker-ui #view-rangliste .rang-pps-table td:nth-child(3) {
    width: 92px;
    min-width: 92px;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-excel-card-body {
    display: grid;
    gap: 12px;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-side-table th,
  .kicker-ui #view-rangliste .kms-rang-pps-side-table td {
    padding: 8px 10px;
  }

  .kicker-ui #view-rangliste .rang-card:has(#rangTotalBody),
  .kicker-ui #view-rangliste .rang-card:has(#rangDistPointsBody) {
    padding-bottom: 16px;
  }

  .kicker-ui #view-rangliste .rang-card:has(#rangTotalBody) .table-wrap.compact,
  .kicker-ui #view-rangliste .rang-card:has(#rangDistPointsBody) .table-wrap.compact {
    overflow-x: auto;
  }

  .kicker-ui #view-rangliste .rang-total-table,
  .kicker-ui #view-rangliste .rang-dist-table {
    min-width: 100%;
  }
}

@media (max-width: 1100px) {
  .kicker-ui #view-rangliste .rangliste-grid {
    grid-template-columns: fit-content(100%) fit-content(100%);
  }
}

@media (max-width: 900px) {
  .kicker-ui #view-rangliste .kms-rang-half-section,
  .kicker-ui #view-rangliste .kms-rang-half-list {
    width: 100%;
    max-width: 100%;
  }

  .kicker-ui #view-rangliste .kms-rang-half-head {
    display: none;
  }

  .kicker-ui #view-rangliste .kms-rang-half-list {
    border-radius: 16px;
    overflow: hidden;
  }

  .kicker-ui #view-rangliste .kms-rang-half-entry {
    border-bottom: 1px solid #2d3950;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
    grid-template-areas:
      "manager total"
      "hin rueck"
      "forecast forecast";
    gap: 10px 12px;
    padding: 14px 14px 12px;
    align-items: end;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row > span:first-child {
    grid-area: manager;
    font-size: 1.15rem;
    font-weight: 700;
  }

  .kicker-ui #view-rangliste .kms-rang-half-total-cell {
    grid-area: total;
    width: 100%;
    min-width: 88px;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row .kms-rang-half-toggle {
    width: 100%;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row strong {
    width: 100%;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(60, 76, 107, 0.8);
    border-radius: 12px;
    background: rgba(18, 25, 39, 0.9);
    font-size: 1rem;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row strong:nth-of-type(1) {
    grid-area: hin;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row strong:nth-of-type(2) {
    grid-area: rueck;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row strong:nth-of-type(3) {
    grid-area: forecast;
  }

  .kicker-ui #view-rangliste .kms-rang-half-total-cell::before,
  .kicker-ui #view-rangliste .kms-rang-half-row strong::before {
    display: block;
    color: #96a7c6;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .kicker-ui #view-rangliste .kms-rang-half-total-cell::before {
    content: "Gesamt";
    margin-bottom: 6px;
  }

  .kicker-ui #view-rangliste .kms-rang-half-row strong:nth-of-type(1)::before {
    content: "Hinrunde";
  }

  .kicker-ui #view-rangliste .kms-rang-half-row strong:nth-of-type(2)::before {
    content: "Rückrunde";
  }

  .kicker-ui #view-rangliste .kms-rang-half-row strong:nth-of-type(3)::before {
    content: "Forecast";
  }

  .kicker-ui #view-rangliste .kms-rang-half-detail {
    position: static;
    transform: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-excel-card,
  .kicker-ui #view-rangliste .rang-card:has(#rangTotalBody) {
    display: none !important;
  }

  .kicker-ui #view-rangliste .rangliste-grid {
    grid-template-columns: 1fr !important;
    justify-content: stretch;
  }

  .kicker-ui #view-rangliste .rang-card:first-child,
  .kicker-ui #view-rangliste .rang-card:nth-child(2),
  .kicker-ui #view-rangliste .kms-rang-pps-excel-card {
    width: 100%;
    max-width: 100%;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-excel-card-body {
    width: 100%;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-side-section,
  .kicker-ui #view-rangliste .kms-rang-pps-side-section .table-wrap.compact {
    width: 100%;
    max-width: 100%;
  }

  .kicker-ui #view-rangliste .rang-mobile-card-list {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .kicker-ui #view-rangliste .kms-rang-pps-side-section .table-wrap.compact {
    display: none !important;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list {
    display: grid;
    gap: 10px;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .rang-mobile-card {
    padding: 12px;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .rang-mobile-card header {
    margin-bottom: 10px;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    justify-items: stretch;
    width: 100%;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metric {
    width: 100%;
    min-width: 0;
    padding: 10px;
    justify-self: stretch;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(111, 126, 157, 0.18);
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metric span {
    display: block;
    color: #95a6c4;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metric strong {
    display: block;
    margin-top: 6px;
    color: #f5f7ff;
    font-size: 0.98rem;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .rang-mobile-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metric span {
    font-size: 0.66rem;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metric strong {
    font-size: 0.9rem;
  }

  .kicker-ui #view-rangliste .kms-rang-pps-mobile-list .kms-rang-pps-mobile-metric:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.player-inline-media {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.kms-hidden-name-input {
  display: none !important;
}

.chip-player-name-slot,
.spieltag-stats-player-cell {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.player-inline-avatar,
.player-inline-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 34px;
  object-fit: cover;
  border: 1px solid rgba(160, 175, 205, 0.28);
  background: rgba(18, 25, 36, 0.92);
}

.player-inline-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f7ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.player-inline-name,
.chip-player-name,
.spieltag-player-name,
.spieltag-stats-player-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-inline-team-logo,
.lineup-pitch-club-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-left: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.player-inline-team-logo.trailing-team-logo {
  justify-self: end;
  margin-left: 0;
}

.kms-status-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.kms-status-slot.injured {
  background: radial-gradient(circle at 35% 30%, #fff9ef 0%, #ffe8bf 55%, #ffd48a 100%);
  color: #a44d00;
  border: 1px solid rgba(219, 145, 36, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.availability-wrap.kms-availability-inline-replaced {
  display: none !important;
}

#view-start .start-manager-top h4 .se-editable[data-start-field$=".last_name"] {
  font-size: 0.68em;
}

#view-start .start-hero-stats {
  display: none !important;
}

#view-start .start-kpi .kms-start-kpi-value.kms-start-kpi-positive {
  color: #67d98b;
}

#view-start .start-kpi .kms-start-kpi-value.kms-start-kpi-negative {
  color: #ff6f7d;
}

#view-start .start-kpi strong {
  font-size: 1.28rem;
  line-height: 1.2;
}

#view-start .start-kpi .kms-start-kpi-value {
  font-size: 1.28em;
  font-weight: 900;
  white-space: nowrap;
}

.kms-dashboard-standings {
  margin-top: 12px;
}

.kms-dashboard-standings-card {
  border: 1px solid rgba(78, 92, 122, 0.58);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 24, 37, 0.98), rgba(10, 15, 26, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.kms-dashboard-standings-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px 48px 54px;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(78, 92, 122, 0.42);
  background: rgba(28, 37, 55, 0.92);
  color: #aebad2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kms-dashboard-standings-head span:nth-child(1),
.kms-dashboard-standings-head span:nth-child(3),
.kms-dashboard-standings-head span:nth-child(4),
.kms-dashboard-standings-head span:nth-child(5) {
  text-align: center;
}

.kms-dashboard-standings-table-wrap {
  overflow: hidden;
}

.kms-dashboard-standings-table {
  width: 100%;
  border-collapse: collapse;
}

.kms-dashboard-standings-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(78, 92, 122, 0.24);
  color: #edf2ff;
  font-size: 0.84rem;
}

.kms-dashboard-standings-table tr:last-child td {
  border-bottom: 0;
}

.kms-dashboard-standings-table td.num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.kms-dashboard-standings-table td.team {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kms-dashboard-standings-empty {
  padding: 14px 12px;
  color: #aebad2;
  font-size: 0.84rem;
}

.kms-player-hover-tooltip {
  position: fixed;
  z-index: 9999;
  min-width: 170px;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(99, 116, 149, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 27, 40, 0.98), rgba(13, 18, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(0, 0, 0, 0.28);
  color: #eef3ff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.kms-player-hover-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.kms-player-tooltip-target {
  cursor: help;
  position: relative;
}

.kms-player-tooltip-title {
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f7fbff;
  line-height: 1.15;
}

.kms-player-tooltip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  font-size: 0.8rem;
  color: #b8c5dc;
}

.kms-player-tooltip-grid strong {
  color: #f2f6ff;
  font-variant-numeric: tabular-nums;
}

.kms-mobile-stat-trigger {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(123, 145, 182, 0.42);
  border-radius: 999px;
  background: rgba(17, 24, 36, 0.76);
  color: rgba(237, 243, 255, 0.9);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

#view-aufstellung #dashboardLineupBoard .player-chip .kms-mobile-stat-trigger {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  grid-column: 8;
  grid-row: 1;
  justify-self: end;
  margin-right: 0;
  width: 20px;
  height: 20px;
}

.kms-mobile-player-sheet {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  background: transparent !important;
}

.kms-mobile-player-sheet.visible {
  display: block;
}

.kms-mobile-player-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.kms-mobile-player-sheet-card {
  position: fixed;
  padding: 14px 14px 12px;
  border: 1px solid rgba(98, 122, 160, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(93, 201, 143, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 27, 40, 0.985), rgba(10, 15, 24, 0.985));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.34);
  z-index: 1;
}

.kms-mobile-player-sheet-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(98, 122, 160, 0.34);
  border-left: 1px solid rgba(98, 122, 160, 0.34);
  background: rgba(19, 26, 39, 0.98);
  transform: rotate(45deg);
}

.kms-mobile-player-sheet.visible {
  pointer-events: none;
}

.kms-mobile-player-sheet.visible .kms-mobile-player-sheet-backdrop,
.kms-mobile-player-sheet.visible .kms-mobile-player-sheet-card,
.kms-mobile-player-sheet.visible .kms-mobile-player-sheet-close {
  pointer-events: auto;
}

.kms-mobile-player-sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(108, 125, 157, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef4ff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.kms-mobile-player-sheet-body .kms-player-tooltip-title {
  padding-right: 28px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.kms-mobile-player-sheet-body .kms-player-tooltip-grid {
  gap: 8px 14px;
  font-size: 0.88rem;
}

.kms-mobile-player-sheet-body .kms-player-tooltip-grid span {
  color: #b8c5dc;
}

.kms-mobile-player-sheet-body .kms-player-tooltip-grid strong {
  min-width: 18px;
  text-align: right;
}

#view-spieltag .spieltag-player.kms-player-tooltip-target,
#view-spieltag .spieltag-bench-player.kms-player-tooltip-target,
#view-spieltag .lineup-pitch-card.kms-player-tooltip-target {
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

#view-spieltag .spieltag-player.kms-player-tooltip-target:hover,
#view-spieltag .spieltag-bench-player.kms-player-tooltip-target:hover,
#view-spieltag .lineup-pitch-card.kms-player-tooltip-target:hover {
  border-color: rgba(108, 224, 154, 0.52);
  box-shadow:
    0 0 0 1px rgba(108, 224, 154, 0.18),
    0 10px 24px rgba(5, 12, 22, 0.28);
}

#view-spieltag #spieltagStatsBody tr.kms-player-tooltip-target {
  transition: background 140ms ease, box-shadow 140ms ease;
}

#view-spieltag #spieltagStatsBody tr.kms-player-tooltip-target:hover {
  background: rgba(33, 42, 58, 0.92);
  box-shadow: inset 0 0 0 1px rgba(108, 224, 154, 0.16);
}

@media (hover: none), (pointer: coarse) {
  .kms-player-tooltip-target {
    cursor: default;
  }

  .kms-player-hover-tooltip {
    display: none !important;
  }

  #view-spieltag .spieltag-player.kms-player-tooltip-target:hover,
  #view-spieltag .spieltag-bench-player.kms-player-tooltip-target:hover,
  #view-spieltag .lineup-pitch-card.kms-player-tooltip-target:hover,
  #view-spieltag #spieltagStatsBody tr.kms-player-tooltip-target:hover {
    border-color: inherit;
    box-shadow: none;
    background: inherit;
  }

  .kms-mobile-stat-trigger {
    display: inline-flex;
  }

  body.kms-mobile-sheet-open {
    overflow: hidden;
  }
}

.kms-dashboard-standings-table tbody tr:nth-child(4),
.kms-dashboard-standings-table tbody tr:nth-child(6),
.kms-dashboard-standings-table tbody tr:nth-child(16) {
  box-shadow: inset 0 -1px 0 rgba(120, 143, 182, 0.35);
}

.kms-dashboard-standings-table tbody tr:nth-child(-n+4) td:first-child {
  color: #61d67c;
  font-weight: 800;
}

.kms-dashboard-standings-table tbody tr:nth-child(5) td:first-child,
.kms-dashboard-standings-table tbody tr:nth-child(6) td:first-child {
  color: #f4ca63;
  font-weight: 800;
}

.kms-dashboard-standings-table tbody tr:nth-last-child(-n+2) td:first-child {
  color: #ff7a7a;
  font-weight: 800;
}

@media (min-width: 1000px) {
  #dashboardLineupBoard.lineup-board {
    width: 100%;
    max-width: 100%;
    grid-template-columns: max-content max-content fit-content(420px);
    grid-template-areas:
      "pitch pitch pitch"
      "main side fixtures";
    column-gap: 8px;
    align-items: start;
    justify-content: center;
    margin-inline: auto;
  }

  #dashboardLineupBoard .lineup-pitch-panel {
    grid-area: pitch;
    margin-bottom: 6px;
  }

  #dashboardLineupBoard .lineup-main {
    grid-area: main;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: start;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: max-content;
  }

  #dashboardLineupBoard .lineup-side {
    grid-area: side;
    max-width: none;
    align-content: start;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: fit-content;
  }

  #dashboardLineupBoard .lineup-side-fixtures {
    grid-area: fixtures;
    max-width: 420px;
    align-content: start;
    width: fit-content;
    align-self: start;
    position: sticky !important;
    top: 88px !important;
    max-height: calc(100vh - 104px);
    overflow: hidden;
  }

  #dashboardLineupBoard .lineup-main .lineup-column {
    width: auto;
    min-width: 100%;
    max-width: none;
    justify-self: auto;
  }

  #dashboardLineupBoard .lineup-side .lineup-column {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
  }

  #dashboardLineupBoard .lineup-pitch {
    margin-left: 0;
    margin-right: 0;
    border: 1px solid rgba(86, 103, 137, 0.42);
    border-radius: 22px;
    padding: 20px 14px 14px;
    background:
      radial-gradient(circle at top center, rgba(69, 212, 131, 0.12), transparent 28%),
      repeating-linear-gradient(0deg, #143124 0, #143124 44px, #183b2c 44px, #183b2c 88px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 16px 34px rgba(0, 0, 0, 0.24);
  }

  #dashboardLineupBoard .lineup-pitch-manager {
    background: rgba(12, 18, 28, 0.84);
    border-color: rgba(102, 118, 146, 0.48);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  }

  #dashboardLineupBoard .lineup-pitch-card {
    border-color: rgba(90, 105, 136, 0.46);
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.95), rgba(12, 18, 28, 0.95));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 8px 18px rgba(0, 0, 0, 0.2);
  }

  #dashboardLineupBoard .lineup-main,
  #dashboardLineupBoard .lineup-side,
  #dashboardLineupBoard .lineup-side-fixtures {
    min-width: 0;
  }

  #dashboardLineupBoard .lineup-column {
    padding: 6px;
    border-radius: 18px;
    border: 1px solid rgba(86, 103, 137, 0.42);
    background:
      radial-gradient(circle at top left, rgba(64, 196, 99, 0.08), transparent 38%),
      linear-gradient(180deg, rgba(24, 31, 45, 0.98), rgba(17, 22, 34, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 12px 30px rgba(0, 0, 0, 0.22);
  }

  #dashboardLineupBoard .lineup-column h4 {
    margin: 0;
    padding: 4px 6px 8px;
    font-size: 0.9rem;
    line-height: 1.1;
    color: #f4f7ff;
    letter-spacing: -0.01em;
  }

  #dashboardLineupBoard .lineup-column h4::after,
  #dashboardLineupBoard .lineup-role-fixtures h4::after,
  #dashboardLineupBoard .kms-dashboard-standings h4::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #45d483, rgba(69, 212, 131, 0.16));
  }

  #dashboardLineupBoard .lineup-dropzone {
    min-height: 24px;
    padding: 4px;
    gap: 6px;
    border: 1px solid rgba(94, 116, 154, 0.28);
    background: rgba(11, 16, 26, 0.58);
    border-radius: 14px;
    justify-items: start;
  }

  #dashboardLineupBoard .lineup-main .player-chip {
    justify-self: stretch;
  }

  #dashboardLineupBoard .bench-stack {
    gap: 10px;
    justify-items: start;
  }

  #dashboardLineupBoard .bench-sub {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  #dashboardLineupBoard .bench-sub h5 {
    margin: 0;
    padding: 2px 6px 6px;
    font-size: 0.78rem;
    color: #c7d2eb;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  #dashboardLineupBoard .bench-sub .lineup-dropzone {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    box-sizing: border-box;
  }

  #dashboardLineupBoard .player-chip {
    min-height: 46px;
    padding: 4px 8px;
    column-gap: 9px;
    border: 1px solid rgba(90, 105, 136, 0.46);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.98), rgba(12, 18, 28, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 8px 18px rgba(0, 0, 0, 0.16);
    width: fit-content;
    max-width: 100%;
    justify-self: start;
  }

  #view-aufstellung #dashboardLineupBoard .chip-player-name,
  #view-aufstellung #dashboardLineupBoard .chip-name {
    max-width: none;
  }

  #dashboardLineupBoard .chip-pos {
    min-width: 56px;
    min-height: 28px;
    padding: 2px 10px;
    font-size: 0.76rem;
    line-height: 1;
    border: 1px solid rgba(105, 116, 150, 0.46);
    background: rgba(35, 38, 56, 0.92);
    color: #eef2ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  #dashboardLineupBoard .player-inline-avatar,
  #dashboardLineupBoard .player-inline-avatar-fallback {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  #dashboardLineupBoard .player-inline-team-logo.trailing-team-logo {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  #dashboardLineupBoard .chip-player-name {
    font-size: 0.9rem;
    line-height: 1.1;
    color: #f5f7ff;
  }

  #dashboardLineupBoard .player-inline-media {
    gap: 10px;
  }

  #dashboardLineupBoard .chip-player-media .player-inline-team-logo {
    margin-left: 2px;
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  #dashboardLineupBoard .chip-mail-lock-btn {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    border-color: rgba(104, 116, 145, 0.42) !important;
    background: linear-gradient(180deg, #f8fafc, #e8edf8) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-list {
    gap: 8px;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-teams {
    font-size: 0.88rem;
    font-weight: 800;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-kickoff {
    font-size: 0.76rem;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-result {
    font-size: 0.78rem;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-status {
    display: none;
  }

  #dashboardLineupBoard .lineup-side,
  #dashboardLineupBoard .lineup-side-fixtures {
    width: fit-content;
  }

  #dashboardLineupBoard .lineup-side-fixtures {
    margin-top: 0;
  }

  #dashboardLineupBoard .lineup-side .lineup-role-bench {
    min-width: 0;
  }

  #dashboardLineupBoard .lineup-role-fixtures,
  #dashboardLineupBoard .kms-dashboard-standings {
    padding: 6px;
    border: 1px solid rgba(86, 103, 137, 0.42);
    border-radius: 18px;
    background:
      radial-gradient(circle at top left, rgba(64, 196, 99, 0.08), transparent 38%),
      linear-gradient(180deg, rgba(24, 31, 45, 0.98), rgba(17, 22, 34, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 12px 30px rgba(0, 0, 0, 0.22);
  }

  #dashboardLineupBoard .lineup-role-fixtures h4,
  #dashboardLineupBoard .kms-dashboard-standings h4 {
    margin: 0;
    padding: 4px 6px 8px;
    color: #f4f7ff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-list,
  #dashboardLineupBoard .kms-dashboard-standings-card {
    border-radius: 8px;
    overflow: hidden;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-list {
    max-height: calc(100vh - 168px);
    overflow-y: auto;
    padding-right: 4px;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-row {
    border-color: rgba(90, 105, 136, 0.46);
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.98), rgba(12, 18, 28, 0.98));
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-teams,
  #dashboardLineupBoard .lineup-role-fixtures .fx-result {
    color: #eef3ff;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-kickoff,
  #dashboardLineupBoard .lineup-role-fixtures .fx-empty,
  #dashboardLineupBoard .kms-dashboard-standings-empty {
    color: #b4c0d8;
  }

  #dashboardLineupBoard .lineup-role-fixtures .fx-empty {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.98), rgba(12, 18, 28, 0.98));
  }

  #dashboardLineupBoard .kms-dashboard-standings {
    margin-top: 4px;
  }

  #dashboardLineupBoard .kms-dashboard-standings-card {
    border: 1px solid rgba(90, 105, 136, 0.46);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.98), rgba(12, 18, 28, 0.98));
    box-shadow: none;
    overflow: hidden;
  }

  #dashboardLineupBoard .kms-dashboard-standings-table {
    width: 100%;
    border-collapse: collapse;
  }

  #dashboardLineupBoard .kms-dashboard-standings-table thead th {
    padding: 10px 12px 8px;
    background: linear-gradient(180deg, rgba(39, 48, 69, 0.96), rgba(31, 40, 58, 0.92));
    border-bottom: 1px solid rgba(86, 103, 137, 0.42);
    color: #b4c0d8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  #dashboardLineupBoard .kms-dashboard-standings-table th:nth-child(1),
  #dashboardLineupBoard .kms-dashboard-standings-table th:nth-child(3),
  #dashboardLineupBoard .kms-dashboard-standings-table th:nth-child(4),
  #dashboardLineupBoard .kms-dashboard-standings-table th:nth-child(5),
  #dashboardLineupBoard .kms-dashboard-standings-table td:nth-child(1),
  #dashboardLineupBoard .kms-dashboard-standings-table td:nth-child(3),
  #dashboardLineupBoard .kms-dashboard-standings-table td:nth-child(4),
  #dashboardLineupBoard .kms-dashboard-standings-table td:nth-child(5) {
    text-align: center;
  }

  #dashboardLineupBoard .kms-dashboard-standings-table td {
    color: #eef3ff;
  }

  #dashboardLineupBoard .kms-dashboard-standings-table tr:first-child td {
    border-top: 0;
  }

  .kms-dashboard-standings {
    margin-top: 6px;
  }

  .kms-dashboard-standings-card {
    border-radius: 14px;
  }

  .kms-dashboard-standings-table td {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .kms-dashboard-standings-empty {
    padding: 14px 12px;
    font-size: 0.84rem;
  }
}

@media (min-width: 1500px) {
  #dashboardLineupBoard.lineup-board {
    width: fit-content;
    grid-template-columns: max-content max-content fit-content(500px);
    column-gap: 12px;
    justify-content: center;
    margin-inline: auto;
  }

  #dashboardLineupBoard .lineup-side-fixtures {
    max-width: 500px;
  }
}

#view-aufstellung .chip-player-media,
#view-spieltag .chip-player-media {
  flex: 1 1 auto;
  min-width: 0;
}

#view-aufstellung .chip-player-name,
#view-spieltag .chip-player-name {
  font-weight: 700;
}

#view-aufstellung .player-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  width: 100%;
}

#view-aufstellung .player-chip .chip-pos,
#view-aufstellung .player-chip .dashboard-bench-stats,
#view-aufstellung .player-chip .chip-live-badge,
#view-aufstellung .player-chip .availability-wrap,
#view-aufstellung .player-chip .chip-mail-lock-btn,
#view-aufstellung #dashboardLineupBoard .player-chip .kms-mobile-stat-trigger {
  display: none !important;
}

#view-aufstellung #dashboardLineupBoard .player-chip .chip-mail-lock-btn {
  display: inline-flex !important;
}

#view-aufstellung #dashboardLineupBoard .lineup-role-bench .player-chip {
  grid-template-columns: minmax(0, 1fr) 20px 34px !important;
  column-gap: 8px !important;
}

#view-aufstellung #dashboardLineupBoard .lineup-role-bench .player-chip > .player-inline-team-logo.trailing-team-logo {
  grid-column: 2 !important;
  justify-self: center !important;
}

#view-aufstellung #dashboardLineupBoard .lineup-role-bench .player-chip .chip-mail-lock-btn {
  grid-column: 3 !important;
  justify-self: end !important;
}

#view-aufstellung .player-chip .chip-player-media {
  gap: 8px;
}

#view-aufstellung .player-chip .chip-name,
#view-aufstellung .player-chip .chip-player-name {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
}

@media (min-width: 901px) {
  #view-aufstellung #dashboardLineupBoard .player-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  #view-aufstellung #dashboardLineupBoard .player-chip .kms-mobile-stat-trigger {
    display: none !important;
  }

  #view-aufstellung #dashboardLineupBoard .player-chip > .player-inline-team-logo.trailing-team-logo,
  #view-aufstellung #dashboardLineupBoard .player-chip .chip-live-badge,
  #view-aufstellung #dashboardLineupBoard .player-chip .availability-wrap,
  #view-aufstellung #dashboardLineupBoard .player-chip .chip-mail-lock-btn {
    justify-self: auto;
  }
}

#view-aufstellung .player-chip.mobile-selected {
  border-color: #4d8dff !important;
  background: linear-gradient(180deg, rgba(77, 141, 255, 0.16), rgba(77, 141, 255, 0.08));
  box-shadow:
    0 0 0 2px rgba(77, 141, 255, 0.5),
    0 8px 18px rgba(32, 92, 189, 0.18);
}

#view-spieltag .spieltag-bench-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  width: 100%;
  position: relative;
  padding-right: 68px;
}

#view-spieltag .spieltag-bench-player .spieltag-drag-handle {
  display: none;
}

#view-spieltag .spieltag-bench-player .chip-pos {
  min-width: 50px;
  text-align: center;
}

#view-spieltag .spieltag-bench-player .chip-player-media {
  gap: 8px;
}

#view-spieltag .spieltag-bench-player .player-inline-avatar,
#view-spieltag .spieltag-bench-player .player-inline-avatar-fallback {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

#view-spieltag .spieltag-bench-player .player-inline-team-logo {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

#view-aufstellung .player-chip > .player-inline-team-logo.trailing-team-logo,
#view-spieltag .spieltag-bench-player > .player-inline-team-logo.trailing-team-logo,
#view-spieltag .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  justify-self: end;
  align-self: center;
}

#view-spieltag .spieltag-bench-player > .player-inline-team-logo.trailing-team-logo {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

#view-spieltag .spieltag-bench-player .chip-player-name {
  font-size: 0.96rem;
}

#view-aufstellung .player-chip .availability-wrap,
#view-spieltag .spieltag-bench-player .availability-wrap {
  margin-left: 0;
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
}

#view-aufstellung .player-chip .dashboard-bench-stats {
  grid-column: 3;
  grid-row: 1;
  margin-left: 0;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#view-aufstellung .player-chip .dashboard-bench-stats.empty {
  display: none;
}

#view-aufstellung .player-chip .chip-live-badge,
#view-spieltag .spieltag-bench-player .chip-live-badge {
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
}

#view-aufstellung .player-chip > .player-inline-team-logo.trailing-team-logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

#view-spieltag .spieltag-bench-player .spieltag-bench-stats {
  grid-column: 4;
  grid-row: 1;
  margin-left: 0;
  margin-right: 30px;
  gap: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

#view-spieltag .spieltag-bench-player .spieltag-bench-stats.empty {
  display: none;
}

#view-spieltag .spieltag-bench-player .availability-wrap:has(.availability-icon.available):not(:has(.availability-icon.injured, .availability-icon.suspended)) {
  display: none;
}

#view-spieltag .spieltag-bench-player .spieltag-bench-stats .lineup-pitch-stat {
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.68rem;
}

#view-aufstellung .lineup-pitch-name-row,
#view-spieltag .lineup-pitch-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

#view-aufstellung .lineup-pitch-name,
#view-spieltag .lineup-pitch-name {
  flex: 1 1 auto;
  min-width: 0;
}

#view-spieltag .spieltag-player-head {
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: 8px;
}

#view-spieltag .spieltag-player-media {
  min-width: 0;
}

#view-spieltag .spieltag-player-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f5f7ff;
}

#view-spieltag .spieltag-player-head .player-inline-team-logo {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  margin-left: auto;
  justify-self: end;
}

#view-spieltag .spieltag-player-head .chip-live-badge,
#view-spieltag .spieltag-player-head .availability-wrap {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
}

#view-spieltag .spieltag-player-head .kms-spieltag-inline-meta {
  grid-column: 5;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-right: 6px;
  white-space: nowrap;
}

#view-spieltag .spieltag-player-head .kms-spieltag-inline-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  border: 1px solid rgba(107, 124, 158, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

#view-spieltag .spieltag-player-head .kms-spieltag-inline-stat.goal {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.98) 0%, rgba(22, 163, 74, 0.98) 100%);
  color: #052e16;
  border-color: rgba(255, 255, 255, 0.8);
}

#view-spieltag .spieltag-player-head .kms-spieltag-inline-stat.ga {
  background: linear-gradient(180deg, rgba(252, 165, 165, 0.98) 0%, rgba(220, 38, 38, 0.98) 100%);
  color: #450a0a;
  border-color: rgba(255, 255, 255, 0.8);
}

#view-spieltag .spieltag-player-head .kms-spieltag-inline-stat.assist {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.95) 0%, rgba(56, 189, 248, 0.95) 100%);
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.8);
}

#view-spieltag .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
  grid-column: 6;
  grid-row: 1;
}

#view-spieltag .spieltag-stats-player-cell {
  min-width: 240px;
}

#view-spieltag .spieltag-stats-player-media {
  justify-content: flex-start;
}

#view-spieltag .spieltag-stats-player-name {
  font-weight: 700;
}

@media (min-width: 1400px) {
  #view-aufstellung .lineup-pitch,
  #view-spieltag .lineup-pitch {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }

  #view-aufstellung .lineup-pitch-row,
  #view-spieltag .lineup-pitch-row {
    gap: 22px;
    min-height: 118px;
  }

  #view-aufstellung .lineup-pitch-card,
  #view-spieltag .lineup-pitch-card {
    min-width: 164px;
    max-width: 164px;
    padding: 10px 10px 12px;
  }

  #view-aufstellung .lineup-pitch-name-row,
  #view-spieltag .lineup-pitch-name-row {
    justify-content: center;
    gap: 10px;
  }

  #view-aufstellung .lineup-pitch-name,
  #view-spieltag .lineup-pitch-name {
    font-size: 1.08rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 118px;
    min-height: 0;
  }

  #view-aufstellung .lineup-pitch-club-logo,
  #view-spieltag .lineup-pitch-club-logo {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (max-width: 900px) {
  .kms-dashboard-standings-head {
    grid-template-columns: 28px minmax(0, 1fr) 34px 40px 48px;
    gap: 6px;
    padding: 8px 10px 7px;
    font-size: 0.66rem;
  }

  .kms-dashboard-standings-table td {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .kms-dashboard-standings-table-wrap {
    overflow: hidden;
  }

  #view-spieltag .spieltag-bench-player {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    column-gap: 8px;
    padding: 8px 10px;
  }

  #view-spieltag .spieltag-bench-player .chip-pos {
    min-width: 44px;
    text-align: center;
  }

  #view-spieltag .chip-player-media {
    gap: 8px;
  }

  #view-spieltag .player-inline-avatar,
  #view-spieltag .player-inline-avatar-fallback {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  #view-spieltag .chip-player-name {
    font-size: 0.9rem;
    font-weight: 700;
  }

  #view-spieltag .player-inline-team-logo {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  #view-aufstellung .player-chip > .player-inline-team-logo.trailing-team-logo,
  #view-spieltag .spieltag-bench-player > .player-inline-team-logo.trailing-team-logo,
  #view-spieltag .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  #view-spieltag .spieltag-bench-player .chip-live-badge,
  #view-spieltag .spieltag-bench-player .availability-wrap,
  #view-spieltag .spieltag-bench-player .spieltag-bench-stats {
    margin-left: 0;
    justify-self: end;
  }

  #view-spieltag .spieltag-bench-stats .lineup-pitch-stat {
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  #view-aufstellung .lineup-pitch-row,
  #view-spieltag .lineup-pitch-row {
    width: 100%;
    justify-content: center;
    gap: 12px 10px;
  }

  #view-aufstellung .lineup-pitch-card,
  #view-spieltag .lineup-pitch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    row-gap: 5px;
    width: clamp(96px, 27vw, 124px);
    min-width: clamp(96px, 27vw, 124px);
    max-width: clamp(96px, 27vw, 124px);
    min-height: 118px;
    padding: 8px 8px 8px;
    text-align: center;
    position: relative;
  }

  #view-aufstellung .lineup-pitch-photo-wrap,
  #view-spieltag .lineup-pitch-photo-wrap {
    width: 54px;
    height: 54px;
    margin: 0;
  }

  #view-aufstellung .lineup-pitch-photo,
  #view-spieltag .lineup-pitch-photo,
  #view-aufstellung .lineup-pitch-photo-fallback,
  #view-spieltag .lineup-pitch-photo-fallback {
    width: 54px;
    height: 54px;
  }

  #view-aufstellung .lineup-pitch-name-row,
  #view-spieltag .lineup-pitch-name-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }

  #view-aufstellung .lineup-pitch-name,
  #view-spieltag .lineup-pitch-name {
    margin-top: 0;
    min-height: 2.15em;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.08;
    white-space: normal;
    overflow: hidden;
    text-overflow: initial;
    max-width: calc(100% - 26px);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #view-aufstellung .lineup-pitch-stats,
  #view-spieltag .lineup-pitch-stats {
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    gap: 4px;
  }

  #view-aufstellung .lineup-pitch-stat,
  #view-spieltag .lineup-pitch-stat {
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  #view-aufstellung .lineup-pitch-note,
  #view-spieltag .lineup-pitch-note {
    min-width: 32px;
    height: 22px;
    padding: 0 7px;
    font-size: 0.82rem;
  }

  #view-aufstellung .lineup-pitch-live-badge,
  #view-spieltag .lineup-pitch-live-badge,
  #view-aufstellung .lineup-pitch-edt,
  #view-spieltag .lineup-pitch-edt {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.8rem;
  }

  #view-aufstellung .lineup-pitch-club-logo,
  #view-spieltag .lineup-pitch-club-logo {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    margin-left: 0;
    flex-shrink: 0;
  }

  #view-spieltag .spieltag-player-head {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    row-gap: 8px;
    column-gap: 6px;
    align-items: center;
  }

  #view-spieltag .spieltag-player-head .spieltag-drag-handle {
    display: none;
  }

  #view-spieltag .spieltag-player-head .chip-pos {
    grid-column: 1;
  }

  #view-spieltag .spieltag-player-head .spieltag-player-media {
    grid-column: 2;
    min-width: 0;
  }

  #view-spieltag .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
    grid-column: 3;
    justify-self: center;
  }

  #view-aufstellung .player-chip {
    grid-template-columns: minmax(0, 1fr) 20px;
    column-gap: 6px;
  }

  #view-aufstellung .player-chip > .player-inline-team-logo.trailing-team-logo {
    grid-column: 2;
  }

  #view-spieltag .spieltag-bench-player {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    padding-right: 12px;
  }

  #view-spieltag .spieltag-player,
  #view-spieltag .spieltag-bench-player,
  #view-spieltag .lineup-pitch-card {
    position: relative;
  }

  #view-spieltag .spieltag-player {
    padding-right: 44px;
  }

  #view-spieltag .spieltag-bench-player {
    padding-right: 44px;
  }

  #view-spieltag .lineup-pitch-card {
    padding-right: 28px;
  }

  #view-spieltag .spieltag-player .kms-mobile-stat-trigger,
  #view-spieltag .spieltag-bench-player .kms-mobile-stat-trigger,
  #view-spieltag .lineup-pitch-card .kms-mobile-stat-trigger {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 3;
  }

  #view-spieltag .spieltag-player-head .chip-live-badge,
  #view-spieltag .spieltag-player-head .availability-wrap {
    grid-column: 4;
    justify-self: center;
  }

  #view-spieltag .spieltag-player-head .kms-spieltag-inline-meta {
    grid-column: 5;
    justify-self: end;
    margin-right: 0;
  }

  #view-aufstellung .player-inline-avatar,
  #view-aufstellung .player-inline-avatar-fallback {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  #view-aufstellung .player-inline-team-logo,
  #view-spieltag .lineup-pitch-club-logo {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  #view-aufstellung .kms-pitch-placeholder-card {
    border-style: dashed;
    border-color: rgba(118, 142, 173, 0.22);
    background: linear-gradient(180deg, rgba(10, 16, 26, 0.28), rgba(10, 16, 26, 0.14));
    opacity: 0.5;
  }

  #view-aufstellung .kms-pitch-placeholder-photo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(130, 151, 186, 0.08), rgba(130, 151, 186, 0.04));
    border: 1px dashed rgba(130, 151, 186, 0.18);
  }

  #view-aufstellung .kms-pitch-placeholder-name {
    width: 56px;
    height: 8px;
    border-radius: 999px;
    background: rgba(130, 151, 186, 0.1);
  }

  #view-spieltag .lineup-pitch {
    padding-top: calc(env(safe-area-inset-top, 0px) + 58px);
  }

  #view-spieltag .lineup-pitch-manager {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 10px 5px 5px;
  }

  #view-spieltag .lineup-pitch-manager-face,
  #view-spieltag .lineup-pitch-manager-fallback {
    width: 28px;
    height: 28px;
  }

  #view-spieltag .lineup-pitch-manager-name {
    font-size: 0.84rem;
  }
}

@media (max-width: 540px) {
  #view-aufstellung .lineup-pitch-row,
  #view-spieltag .lineup-pitch-row {
    gap: 10px 8px;
    min-height: 0;
  }

  #view-aufstellung .lineup-pitch-card,
  #view-spieltag .lineup-pitch-card {
    width: clamp(84px, 28vw, 102px);
    min-width: clamp(84px, 28vw, 102px);
    max-width: clamp(84px, 28vw, 102px);
    min-height: 102px;
    border-radius: 10px;
    padding: 7px 6px 7px;
    row-gap: 4px;
  }

  #view-aufstellung .lineup-pitch-photo-wrap,
  #view-spieltag .lineup-pitch-photo-wrap,
  #view-aufstellung .lineup-pitch-photo,
  #view-spieltag .lineup-pitch-photo,
  #view-aufstellung .lineup-pitch-photo-fallback,
  #view-spieltag .lineup-pitch-photo-fallback {
    width: 46px;
    height: 46px;
  }

  #view-aufstellung .lineup-pitch-name-row,
  #view-spieltag .lineup-pitch-name-row {
    gap: 4px;
  }

  #view-aufstellung .lineup-pitch-name,
  #view-spieltag .lineup-pitch-name {
    font-size: 0.76rem;
    line-height: 1.06;
    min-height: 2.05em;
    max-width: calc(100% - 22px);
  }

  #view-aufstellung .lineup-pitch-club-logo,
  #view-spieltag .lineup-pitch-club-logo {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  #view-aufstellung .lineup-pitch-live-badge,
  #view-spieltag .lineup-pitch-live-badge,
  #view-aufstellung .lineup-pitch-edt,
  #view-spieltag .lineup-pitch-edt {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 0.68rem;
  }

  #view-aufstellung .lineup-pitch-note,
  #view-spieltag .lineup-pitch-note {
    min-width: 24px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    top: -6px;
    right: -6px;
  }
}

@media (min-width: 981px) {
  #view-spieltag .spieltag-board {
    grid-template-columns: minmax(0, 1fr) 250px;
    max-width: 860px;
    column-gap: 8px;
    align-items: start;
    margin-left: auto;
    margin-right: auto;
  }

  #view-spieltag .spieltag-board .lineup-main {
    max-width: 100%;
    width: 100%;
  }

  #view-spieltag .spieltag-board .lineup-side {
    max-width: 250px;
    width: 100%;
  }

  #view-spieltag .spieltag-board .lineup-column {
    padding: 3px;
  }

  #view-spieltag .spieltag-player {
    width: fit-content;
    min-width: 560px;
    max-width: 100%;
    padding: 3px 6px;
    gap: 2px;
  }

  #view-spieltag .spieltag-player-head {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
    gap: 6px;
  }

  #view-spieltag .spieltag-player-head input {
    width: clamp(110px, 13vw, 154px);
    min-width: 0;
    height: 24px;
    padding: 1px 5px;
    font-size: 0.82rem;
  }

  #view-spieltag .spieltag-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
  }

  #view-spieltag .spieltag-fields label {
    min-width: 44px;
    width: auto;
    gap: 1px;
  }

  #view-spieltag .spieltag-fields label span {
    font-size: 0.54rem;
    letter-spacing: 0.01em;
    line-height: 1;
  }

  #view-spieltag .spieltag-fields label:first-child {
    min-width: 32px;
  }

  #view-spieltag .spieltag-fields input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  #view-spieltag .spieltag-fields input:not([type="checkbox"]) {
    width: 44px;
    height: 20px;
    font-size: 0.74rem;
    padding: 0 4px;
  }

  #view-spieltag .spieltag-bench-player {
    width: 100%;
    padding: 4px 6px;
    gap: 4px;
  }

  #view-spieltag .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    margin-left: auto;
    justify-self: end;
  }

  #view-spieltag .spieltag-player-head .kms-spieltag-inline-meta {
    gap: 2px;
    margin-right: 3px;
  }

  #view-spieltag .spieltag-player-head .kms-spieltag-inline-stat {
    min-width: 26px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.62rem;
  }
}

/* Final cleanup for Aufstellung: keep club logo, hide visual badges */
#view-aufstellung .player-chip .chip-live-badge,
#view-aufstellung .player-chip .dashboard-bench-stats {
  display: none !important;
}

/* Spieltagsauswertung: green section containers vertically tighter */
#view-spieltag .spieltag-board .lineup-main {
  gap: 4px !important;
}

#view-spieltag .spieltag-board .lineup-side {
  gap: 4px !important;
}

#view-spieltag .spieltag-board .lineup-column {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

#view-spieltag .spieltag-board .lineup-column h4 {
  margin: 0 0 2px !important;
}

#view-spieltag .spieltag-board .bench-stack {
  gap: 4px !important;
}

#view-spieltag .spieltag-board .bench-sub h5 {
  margin: 0 0 2px !important;
}

#view-spieltag .spieltag-board .lineup-dropzone {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

@media (min-width: 981px) {
  #view-spieltag .spieltag-board {
    grid-template-columns: 440px 440px !important;
    max-width: 892px !important;
    justify-content: center !important;
  }

  #view-spieltag .spieltag-board .lineup-main,
  #view-spieltag .spieltag-board .lineup-side {
    width: 440px !important;
    max-width: 440px !important;
  }

  #view-spieltag .spieltag-player,
  #view-spieltag .lineup-side .spieltag-bench-player {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #view-spieltag .spieltag-board .lineup-column {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  #view-spieltag .spieltag-board .lineup-dropzone {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #view-spieltag .spieltag-board .bench-stack,
  #view-spieltag .spieltag-board .bench-sub {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #view-spieltag .spieltag-board .bench-sub .lineup-dropzone {
    width: 100% !important;
    max-width: 100% !important;
    justify-items: stretch !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #view-spieltag .spieltag-board .lineup-role-bench {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  #view-spieltag .spieltag-board .bench-sub .spieltag-bench-player {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }
}

#view-spieltag #spieltagStatsPanel table thead th:nth-child(6),
#view-spieltag #spieltagStatsPanel table tbody td:nth-child(6),
#view-spieltag #spieltagStatsPanel table thead th:nth-child(9),
#view-spieltag #spieltagStatsPanel table tbody td:nth-child(9) {
  display: none;
}

@media (max-width: 980px) {
  #view-spieltag .lineup-pitch {
    padding-top: calc(env(safe-area-inset-top, 0px) + 58px) !important;
  }

  #view-spieltag .lineup-pitch-manager {
    top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
    left: 12px !important;
    max-width: calc(100% - 24px) !important;
    padding: 5px 10px 5px 5px !important;
  }

  #view-spieltag .lineup-pitch-manager-face,
  #view-spieltag .lineup-pitch-manager-fallback {
    width: 28px !important;
    height: 28px !important;
  }

  #view-spieltag .lineup-pitch-manager-name {
    font-size: 0.84rem !important;
  }

  #view-spieltag .spieltag-player,
  #view-spieltag .spieltag-bench-player,
  #view-spieltag .lineup-pitch-card {
    position: relative !important;
  }

  #view-spieltag .spieltag-player {
    padding-right: 44px !important;
  }

  #view-spieltag .spieltag-bench-player {
    padding-right: 44px !important;
  }

  #view-spieltag .lineup-pitch-card {
    padding-right: 28px !important;
  }

  #view-spieltag .spieltag-player .kms-mobile-stat-trigger,
  #view-spieltag .spieltag-bench-player .kms-mobile-stat-trigger,
  #view-spieltag .lineup-pitch-card .kms-mobile-stat-trigger {
    position: absolute !important;
    top: 10px !important;
    right: 8px !important;
    z-index: 3 !important;
  }

  #view-spieltag .spieltag-player-head {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto !important;
    column-gap: 6px !important;
    row-gap: 8px !important;
    align-items: center !important;
  }

  #view-spieltag .spieltag-player-head .spieltag-drag-handle {
    display: none !important;
  }

  #view-spieltag .spieltag-player-head .chip-pos {
    grid-column: 1 !important;
  }

  #view-spieltag .spieltag-player-head .spieltag-player-media {
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  #view-spieltag .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
    grid-column: 3 !important;
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
    margin-left: 0 !important;
    justify-self: center !important;
  }

  #view-spieltag .spieltag-player-head .chip-live-badge,
  #view-spieltag .spieltag-player-head .availability-wrap {
    grid-column: 4 !important;
    justify-self: center !important;
  }

  #view-spieltag .spieltag-player-head .kms-spieltag-inline-meta {
    grid-column: 5 !important;
    justify-self: end !important;
    gap: 2px !important;
    margin-right: 0 !important;
  }

  #view-spieltag .spieltag-fields {
    display: grid !important;
    grid-template-columns: 40px repeat(4, minmax(0, 1fr)) !important;
    gap: 6px 8px !important;
    align-items: start !important;
  }

  #view-spieltag .spieltag-fields label {
    min-width: 0 !important;
    width: 100% !important;
    justify-items: stretch !important;
  }

  #view-spieltag .spieltag-fields label:first-child {
    min-width: 0 !important;
  }

  #view-spieltag .spieltag-fields input[type="checkbox"] {
    justify-self: center !important;
  }

  #view-spieltag .spieltag-fields input:not([type="checkbox"]) {
    width: 100% !important;
    min-width: 0 !important;
  }

  #view-spieltag .lineup-pitch-row {
    gap: 10px 8px !important;
  }

  #view-spieltag .lineup-pitch-card {
    width: clamp(92px, 29vw, 110px) !important;
    min-width: clamp(92px, 29vw, 110px) !important;
    max-width: clamp(92px, 29vw, 110px) !important;
    min-height: 126px !important;
  }

  #view-spieltag .lineup-pitch-name-row {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
  }

  #view-spieltag .lineup-pitch-name {
    max-width: 100% !important;
    min-height: 2.2em !important;
    font-size: 0.8rem !important;
    line-height: 1.08 !important;
    -webkit-line-clamp: 2 !important;
  }

  #view-spieltag .lineup-pitch-club-logo {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
  }

  #view-spieltag .lineup-pitch-photo-wrap.has-live-start .lineup-pitch-note {
    top: 18px !important;
    right: -4px !important;
  }
}

#view-aufstellung .lineup-pitch-note,
#view-aufstellung .lineup-pitch-stats {
  display: none !important;
}

/* Player row redesign for Aufstellung and Spieltagsauswertung */
#view-aufstellung .player-chip,
#view-spieltag .spieltag-bench-player {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 12px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(14, 19, 29, 0.98) 0%, rgba(9, 13, 21, 0.98) 100%) !important;
  border: 1px solid rgba(83, 98, 128, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(3, 8, 15, 0.18) !important;
}

#view-aufstellung .player-chip.player-chip-mail-blocked,
#view-spieltag .spieltag-bench-player.is-mail-blocked {
  border-color: rgba(172, 92, 92, 0.68) !important;
  background: linear-gradient(180deg, rgba(36, 16, 20, 0.96) 0%, rgba(23, 11, 15, 0.96) 100%) !important;
}

#view-aufstellung .player-chip .player-row,
#view-spieltag .spieltag-bench-player .player-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
}

#view-aufstellung .player-chip .player-row__left,
#view-spieltag .spieltag-bench-player .player-row__left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#view-aufstellung .player-chip .player-row__select,
#view-spieltag .spieltag-bench-player .player-row__select {
  width: 18px !important;
  height: 18px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(144, 160, 191, 0.48) !important;
  background: rgba(11, 17, 26, 0.92) !important;
  flex: 0 0 18px !important;
}

#view-aufstellung .player-chip.mobile-selected .player-row__select,
#view-spieltag .spieltag-bench-player.mobile-selected .player-row__select {
  border-color: rgba(101, 171, 255, 0.95) !important;
  background: linear-gradient(180deg, rgba(85, 153, 255, 0.95) 0%, rgba(39, 109, 228, 0.95) 100%) !important;
  box-shadow: 0 0 0 3px rgba(73, 146, 255, 0.16) !important;
}

#view-aufstellung .player-chip .player-row__avatar,
#view-spieltag .spieltag-bench-player .player-row__avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(23, 31, 45, 0.92) 0%, rgba(14, 21, 32, 0.92) 100%) !important;
  border: 1px solid rgba(74, 88, 115, 0.62) !important;
}

#view-aufstellung .player-chip .player-row__avatar,
#view-spieltag .spieltag-bench-player .player-row__avatar,
#view-aufstellung .player-chip .player-row__avatar-image,
#view-aufstellung .player-chip .player-inline-avatar-fallback,
#view-spieltag .spieltag-bench-player .player-row__avatar-image,
#view-spieltag .spieltag-bench-player .player-inline-avatar-fallback {
  width: 40px !important;
  height: 40px !important;
  border-radius: 13px !important;
  flex: 0 0 40px !important;
}

#view-aufstellung .player-chip .player-row__text,
#view-spieltag .spieltag-bench-player .player-row__text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#view-aufstellung .player-chip .player-row__name,
#view-aufstellung .player-chip .chip-name,
#view-spieltag .spieltag-bench-player .player-row__name,
#view-spieltag .spieltag-bench-player .chip-name {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  color: #f5f8ff !important;
}

#view-aufstellung .player-chip .player-row__subline,
#view-spieltag .spieltag-bench-player .player-row__subline {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
  color: rgba(178, 190, 212, 0.82) !important;
}

#view-aufstellung .player-chip .player-row__right,
#view-spieltag .spieltag-bench-player .player-row__right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

#view-aufstellung .player-chip .player-row__club,
#view-spieltag .spieltag-bench-player .player-row__club {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
}

#view-aufstellung .player-chip .player-row__club > .player-inline-team-logo,
#view-spieltag .spieltag-bench-player .player-row__club > .player-inline-team-logo {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
}

#view-aufstellung .player-chip .player-row__badges,
#view-spieltag .spieltag-bench-player .player-row__badges {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

#view-aufstellung .player-chip .player-row__badges:empty,
#view-spieltag .spieltag-bench-player .player-row__badges:empty,
#view-aufstellung .player-chip .player-row__action:empty,
#view-spieltag .spieltag-bench-player .player-row__action:empty {
  display: none !important;
}

#view-aufstellung .player-chip .dashboard-bench-stats,
#view-spieltag .spieltag-bench-player .spieltag-bench-stats,
#view-aufstellung .player-chip .availability-wrap,
#view-spieltag .spieltag-bench-player .availability-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

#view-aufstellung .player-chip .dashboard-bench-stats.empty,
#view-spieltag .spieltag-bench-player .spieltag-bench-stats.empty {
  display: none !important;
}

#view-aufstellung .player-chip .dashboard-bench-stats .lineup-pitch-stat,
#view-spieltag .spieltag-bench-player .spieltag-bench-stats .lineup-pitch-stat {
  min-width: 36px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

#view-aufstellung .player-chip .player-row__action,
#view-spieltag .spieltag-bench-player .player-row__action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

#view-aufstellung .player-chip .chip-live-badge,
#view-spieltag .spieltag-bench-player .chip-live-badge,
#view-aufstellung .player-chip .chip-mail-lock-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 11px !important;
  flex: 0 0 32px !important;
  margin: 0 !important;
}

#view-aufstellung .player-chip .chip-live-badge-blocked,
#view-spieltag .spieltag-bench-player .chip-live-badge-blocked {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
}

@media (max-width: 920px) {
  #view-aufstellung .player-chip,
  #view-spieltag .spieltag-bench-player {
    padding: 10px 11px !important;
  }

  #view-aufstellung .player-chip .player-row,
  #view-spieltag .spieltag-bench-player .player-row {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  #view-aufstellung .player-chip .player-row__right,
  #view-spieltag .spieltag-bench-player .player-row__right {
    justify-content: flex-start !important;
    padding-left: 34px !important;
  }
}

@media (max-width: 520px) {
  #view-aufstellung .player-chip,
  #view-spieltag .spieltag-bench-player {
    border-radius: 16px !important;
  }

  #view-aufstellung .player-chip .player-row__left,
  #view-spieltag .spieltag-bench-player .player-row__left {
    gap: 8px !important;
  }

  #view-aufstellung .player-chip .player-row__select,
  #view-spieltag .spieltag-bench-player .player-row__select {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
  }

  #view-aufstellung .player-chip .player-row__avatar,
  #view-aufstellung .player-chip .player-row__avatar-image,
  #view-aufstellung .player-chip .player-inline-avatar-fallback,
  #view-spieltag .spieltag-bench-player .player-row__avatar,
  #view-spieltag .spieltag-bench-player .player-row__avatar-image,
  #view-spieltag .spieltag-bench-player .player-inline-avatar-fallback {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  #view-aufstellung .player-chip .player-row__name,
  #view-aufstellung .player-chip .chip-name,
  #view-spieltag .spieltag-bench-player .player-row__name,
  #view-spieltag .spieltag-bench-player .chip-name {
    font-size: 0.96rem !important;
  }

  #view-aufstellung .player-chip .player-row__right,
  #view-spieltag .spieltag-bench-player .player-row__right {
    gap: 8px !important;
  }
}

#view-spieltag .spieltag-bench-player {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 3px 6px !important;
  gap: 2px !important;
  display: grid !important;
}

#view-spieltag .spieltag-bench-player .spieltag-player-head {
  display: grid !important;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto !important;
  align-items: center !important;
  column-gap: 6px !important;
}

#view-spieltag .spieltag-bench-player .spieltag-player-head .spieltag-player-media {
  min-width: 0 !important;
}

#view-spieltag .spieltag-bench-player .spieltag-player-head input {
  width: 100% !important;
  min-width: 0 !important;
  height: 24px !important;
  padding: 1px 5px !important;
  font-size: 0.82rem !important;
  background: var(--field, #fff) !important;
  border: 1px solid var(--stroke, #3a4a68) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
}

#view-spieltag .spieltag-bench-player .spieltag-fields {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px 4px !important;
}

#view-spieltag .spieltag-bench-player .spieltag-fields label {
  min-width: 44px !important;
  width: auto !important;
  gap: 1px !important;
}

#view-spieltag .spieltag-bench-player .spieltag-fields label span {
  font-size: 0.54rem !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
}

#view-spieltag .spieltag-bench-player .spieltag-fields label:first-child {
  min-width: 32px !important;
}

#view-spieltag .spieltag-bench-player .spieltag-fields input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
}

#view-spieltag .spieltag-bench-player .spieltag-fields input:not([type="checkbox"]) {
  width: 44px !important;
  height: 20px !important;
  font-size: 0.74rem !important;
  padding: 0 4px !important;
}

#view-spieltag .lineup-side .spieltag-player {
  width: 100% !important;
  min-width: 0 !important;
}

#view-spieltag .lineup-side .spieltag-player-head .chip-pos {
  min-width: 40px !important;
  justify-content: center !important;
}

#view-spieltag .lineup-side .spieltag-bench-player {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  gap: 6px !important;
  padding: 6px 8px !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto !important;
  column-gap: 6px !important;
  row-gap: 8px !important;
  align-items: center !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .spieltag-drag-handle {
  display: none !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .chip-pos {
  grid-column: 1 !important;
  min-width: 40px !important;
  justify-content: center !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .spieltag-player-media {
  grid-column: 2 !important;
  min-width: 0 !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
  grid-column: 3 !important;
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
  margin-left: 0 !important;
  justify-self: center !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .chip-live-badge,
#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .availability-wrap {
  grid-column: 4 !important;
  justify-self: center !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .chip-live-badge-blocked,
#view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .kms-spieltag-inline-meta {
  grid-column: 5 !important;
  justify-self: end !important;
  margin-right: 0 !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields {
  display: grid !important;
  grid-template-columns: 40px repeat(4, minmax(0, 1fr)) !important;
  gap: 6px 8px !important;
  align-items: start !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields label {
  min-width: 0 !important;
  width: 100% !important;
  justify-items: stretch !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields label:first-child {
  min-width: 0 !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields input[type="checkbox"] {
  justify-self: center !important;
}

#view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields input:not([type="checkbox"]) {
  width: 100% !important;
  min-width: 0 !important;
  height: 30px !important;
  font-size: 0.9rem !important;
  padding: 3px 6px !important;
}

#view-spieltag .lineup-side .spieltag-player-head .spieltag-player-name {
  font-size: 0.84rem !important;
}

#view-spieltag .lineup-side .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}

#view-spieltag .lineup-side .spieltag-player-head .chip-live-badge,
#view-spieltag .lineup-side .spieltag-player-head .availability-wrap {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  font-size: 0.65rem !important;
}

#view-spieltag .lineup-side .spieltag-player-head .kms-spieltag-inline-meta {
  gap: 3px !important;
  margin-right: 0 !important;
}

#view-spieltag .lineup-side .spieltag-player-head .kms-spieltag-inline-stat {
  min-width: 26px !important;
  height: 18px !important;
  padding: 0 5px !important;
  font-size: 0.62rem !important;
}

/* Final desktop parity: Bank cards must match the large Spieltag cards exactly */
@media (min-width: 981px) {
  #view-spieltag .spieltag-board {
    grid-template-columns: minmax(440px, 1fr) minmax(440px, 1fr) !important;
    max-width: 1080px !important;
    column-gap: 12px !important;
  }

  #view-spieltag .spieltag-board .lineup-main,
  #view-spieltag .spieltag-board .lineup-side {
    max-width: 100% !important;
    width: 100% !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player {
    width: fit-content !important;
    min-width: 440px !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    column-gap: 0 !important;
    row-gap: 2px !important;
    padding: 3px 6px !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto !important;
    gap: 6px !important;
    align-items: center !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .spieltag-player-media {
    min-width: 0 !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head input {
    width: clamp(110px, 13vw, 154px) !important;
    min-width: 0 !important;
    height: 24px !important;
    padding: 1px 5px !important;
    font-size: 0.82rem !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px 4px !important;
    grid-template-columns: none !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields label {
    min-width: 44px !important;
    width: auto !important;
    gap: 1px !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields label span {
    font-size: 0.54rem !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields label:first-child {
    min-width: 32px !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    justify-self: auto !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-fields input:not([type="checkbox"]) {
    width: 44px !important;
    min-width: 44px !important;
    height: 20px !important;
    font-size: 0.74rem !important;
    padding: 0 4px !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head > .player-inline-team-logo.trailing-team-logo {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
    margin-left: auto !important;
    justify-self: end !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .chip-live-badge,
  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .availability-wrap {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    font-size: inherit !important;
    grid-column: 5 !important;
    justify-self: center !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .kms-spieltag-inline-meta,
  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .chip-live-badge-blocked {
    grid-column: 6 !important;
    justify-self: end !important;
    gap: 2px !important;
    margin-right: 3px !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .spieltag-player-name {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
  }

  #view-spieltag .lineup-side .spieltag-bench-player .spieltag-player-head .kms-spieltag-inline-stat {
    min-width: 26px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 0.62rem !important;
  }

  #view-spieltag .spieltag-player {
    min-width: 440px !important;
  }
}

/* Final final Aufstellung cleanup */
#view-aufstellung .player-chip .chip-live-badge,
#view-aufstellung .player-chip .dashboard-bench-stats,
#view-aufstellung .player-chip .player-row__badges {
  display: none !important;
}

#view-aufstellung .player-chip .player-row__action {
  display: none !important;
}

#view-aufstellung .lineup-role-bench .player-chip .player-row__action {
  display: inline-flex !important;
}

#view-aufstellung .lineup-name-live-badge,
#view-aufstellung .lineup-pitch-live-badge,
#view-aufstellung .lineup-pitch-edt,
#view-aufstellung .lineup-pitch-stats {
  display: none !important;
}

#view-aufstellung #dashboardLineupBoard .lineup-pitch-card .lineup-pitch-live-badge,
#view-aufstellung #dashboardLineupBoard .lineup-pitch-card .lineup-name-live-badge,
#view-aufstellung #dashboardLineupBoard .lineup-pitch-card .lineup-pitch-edt,
#view-aufstellung #dashboardLineupBoard .lineup-pitch-card .lineup-pitch-stats {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* WM lineup layout aligned to BL-Aufstellung */
#view-wm #wmModuleLineup .lineup-board {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr) minmax(260px, 0.8fr) !important;
  column-gap: 8px !important;
  margin-top: 6px !important;
}

#view-wm #wmModuleLineup .lineup-main {
  display: grid !important;
  gap: 4px !important;
}

#view-wm #wmModuleLineup .lineup-column {
  padding: 7px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #196335 0%, #114928 100%) !important;
  border: 1px solid #3da36a !important;
}

#view-wm #wmModuleLineup .lineup-column h4 {
  margin: 0 0 4px !important;
}

#view-wm #wmModuleLineup .lineup-dropzone {
  min-height: 44px !important;
  padding: 4px !important;
  gap: 4px !important;
  border-radius: 8px !important;
  background: rgba(9, 37, 20, 0.45) !important;
  border: 1px dashed #4bb577 !important;
}

#view-wm #wmModuleLineup .wm-lineup-player {
  padding: 3px 6px !important;
  border-radius: 8px !important;
}

#view-wm #wmModuleLineup .wm-lineup-player .chip-name,
#view-wm #wmModuleLineup .wm-lineup-player .player-row__name {
  font-size: 0.88rem !important;
}

@media (max-width: 1200px) {
  #view-wm #wmModuleLineup .lineup-board {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

#view-wm #wmScoresLineupBoard.lineup-board {
  grid-template-columns: minmax(0, 1fr) !important;
  margin-top: 0 !important;
}

#view-wm #wmScoresLineupBoard .lineup-main {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
}

@media (max-width: 1100px) {
  #view-wm #wmScoresLineupBoard .lineup-main {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Verhandlung: robust row layout for player + Kader badge */
.kicker-ui #view-transfers .transfer-club-table-row {
  align-items: center !important;
  overflow: visible !important;
  min-height: 54px !important;
}

.kicker-ui #view-transfers .transfer-col-player {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

.kicker-ui #view-transfers .transfer-player-name {
  display: block !important;
  min-width: 0 !important;
  line-height: 1.1 !important;
  overflow-wrap: anywhere !important;
}

.kicker-ui #view-transfers .transfer-player-manager {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-self: end !important;
  gap: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.kicker-ui #view-transfers .transfer-player-manager-label {
  display: none !important;
}

.kicker-ui #view-transfers .transfer-player-manager-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 8px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 900px) {
  .kicker-ui #view-transfers .transfer-col-player {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 4px !important;
  }

  .kicker-ui #view-transfers .transfer-player-manager {
    justify-self: start !important;
  }
}
