.stv-bp {
  --stv-red: #e72f45;
  --stv-border: #e4e4e4;
  --stv-soft: #f7f7f7;
  width: 100%;
}

.stv-bp__title { margin: 0 0 14px; }
.stv-bp__table-wrap { overflow-x: auto; }
.stv-bp__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stv-bp__table th { background: var(--stv-red); color: #fff; text-align: left; }
.stv-bp__table th,
.stv-bp__table td { padding: 10px 12px; border: 1px solid var(--stv-border); vertical-align: top; }
.stv-bp__table tbody tr:nth-child(even) { background: var(--stv-soft); }
.stv-bp__own-team { font-weight: 700; }
.stv-bp__own-row { background: #fff1f3 !important; }
.stv-bp__own-row td:first-child { color: var(--stv-red); font-weight: 700; }
.stv-bp__result { white-space: nowrap; font-weight: 700; }
.stv-bp__ranking-table th:not(:nth-child(2)),
.stv-bp__ranking-table td:not(:nth-child(2)) { text-align: center; }
.stv-bp__ranking-table td:nth-child(2) { min-width: 210px; }
.stv-bp__legend { margin: 8px 0 0; color: #666; font-size: 12px; }
.stv-bp__source { margin: 8px 0 0; text-align: right; font-size: 12px; }
.stv-bp__source a { color: #777; }
.stv-bp-message { padding: 12px; background: #fff4f5; border-left: 4px solid #e72f45; }

@media (max-width: 767px) {
  .stv-bp__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stv-bp__table,
  .stv-bp__table tbody,
  .stv-bp__table tr,
  .stv-bp__table td { display: block; width: 100%; }
  .stv-bp__table tr { margin-bottom: 14px; border: 1px solid var(--stv-border); border-top: 4px solid var(--stv-red); background: #fff !important; }
  .stv-bp__table td { display: grid; grid-template-columns: 82px 1fr; gap: 8px; border: 0; border-bottom: 1px solid var(--stv-border); padding: 8px 10px; }
  .stv-bp__table td:last-child { border-bottom: 0; }
  .stv-bp__table td::before { content: attr(data-label); font-weight: 700; color: #555; }
  .stv-bp__ranking-table td,
  .stv-bp__ranking-table td:not(:nth-child(2)) { text-align: left; }
  .stv-bp__ranking-table td:nth-child(2) { min-width: 0; }

  /* Kompakte Ranglistenkarte: Rang und Team oben, Kerndaten darunter. */
  .stv-bp__ranking-table tr {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px;
  }

  .stv-bp__ranking-table td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: auto;
    padding: 7px 5px;
    border: 0;
    text-align: center !important;
  }

  .stv-bp__ranking-table td::before {
    font-size: 11px;
    line-height: 1.15;
    color: #777;
  }

  .stv-bp__ranking-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    border-right: 1px solid var(--stv-border);
    font-size: 18px;
    font-weight: 700;
  }

  .stv-bp__ranking-table td:nth-child(2) {
    grid-column: 2 / 6;
    grid-row: 1;
    align-items: flex-start;
    padding-left: 12px;
    text-align: left !important;
    font-size: 15px;
  }

  .stv-bp__ranking-table td:nth-child(1)::before,
  .stv-bp__ranking-table td:nth-child(2)::before {
    display: none;
  }

  .stv-bp__ranking-table td:nth-child(3),
  .stv-bp__ranking-table td:nth-child(4),
  .stv-bp__ranking-table td:nth-child(5),
  .stv-bp__ranking-table td:nth-child(9),
  .stv-bp__ranking-table td:nth-child(10) {
    grid-row: 2;
    border-top: 1px solid var(--stv-border);
  }

  .stv-bp__ranking-table td:nth-child(3) { grid-column: 1; }
  .stv-bp__ranking-table td:nth-child(4) { grid-column: 2; }
  .stv-bp__ranking-table td:nth-child(5) { grid-column: 3; }
  .stv-bp__ranking-table td:nth-child(9) { grid-column: 4; }
  .stv-bp__ranking-table td:nth-child(10) { grid-column: 5; font-weight: 700; }

  .stv-bp__ranking-table td:nth-child(6),
  .stv-bp__ranking-table td:nth-child(7),
  .stv-bp__ranking-table td:nth-child(8),
  .stv-bp--ranking .stv-bp__legend {
    display: none;
  }
}
