/* Lech Stats / Trenerzy: visual pass aligned with Rywale and Bramki. */
.dashboard-stat-content:has(.coach-story) {
  background: rgba(246, 248, 251, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.coach-story {
  width: min(1242px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.coach-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  border: 0;
  border-radius: 29px;
  background:
    radial-gradient(circle at 82% 16%, rgba(189, 255, 169, 0.22), transparent 30%),
    radial-gradient(circle at 18% 90%, rgba(208, 222, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(0, 29, 102, 0.94), rgba(0, 68, 157, 0.66) 58%, rgba(0, 141, 103, 0.7));
  color: #ffffff;
  padding: 30px 44px;
  box-shadow: none;
}

.coach-hero-card .start-eyebrow,
.coach-story .panel .start-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  background: #e8fff1;
  color: #001d66;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 950;
  text-shadow: none;
  text-transform: uppercase;
}

.coach-hero-card h2 {
  max-width: 850px;
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
}

.coach-hero-card p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 850;
}

.coach-hero-score {
  min-width: 0;
  min-height: 188px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.coach-hero-score strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.coach-hero-score span {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.coach-kpi-grid {
  gap: 16px;
}

.coach-kpi-grid .start-record-card {
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}

.coach-kpi-grid .start-record-card b,
.coach-kpi-grid .start-record-card span,
.coach-kpi-grid .start-record-card small {
  color: rgba(255, 255, 255, 0.82);
}

.coach-kpi-grid .start-record-card strong {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.03;
}

.coach-story > .panel {
  border: 0;
  border-radius: 29px;
  background: rgba(0, 29, 102, 0.24);
  color: #ffffff;
  padding: 26px 58px 34px;
  box-shadow: none;
  backdrop-filter: blur(11px);
}

.coach-heading {
  align-items: flex-end;
  margin-bottom: 18px;
}

.coach-heading h2 {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(24px, 2.35vw, 38px);
  font-weight: 800;
  line-height: 1.05;
}

.coach-heading p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
}

.coach-timeline {
  gap: 4px;
}

.coach-timeline::before {
  top: 23px;
  bottom: 23px;
  background: linear-gradient(180deg, #d0deff, #bdffa9);
  opacity: 0.86;
}

.coach-item {
  border-radius: 8px;
}

.coach-item.is-open {
  background: rgba(255, 255, 255, 0.1);
}

.coach-row {
  grid-template-columns: 42px minmax(260px, 360px) minmax(260px, 1fr) minmax(86px, 110px) minmax(44px, 64px);
  gap: 18px;
  min-height: 58px;
  padding: 8px 0;
  border: 1px solid transparent;
}

.coach-row:hover,
.coach-row:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.coach-index {
  border-color: rgba(255, 255, 255, 0.78);
  background: #005bab;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(0, 29, 102, 0.28);
}

.coach-item.is-unknown .coach-index {
  background: #94a3b8;
}

.coach-main strong {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 29, 102, 0.36);
}

.coach-main small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.coach-record,
.coach-row .opponent-count {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(15px, 1.12vw, 20px);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 29, 102, 0.36);
}

.coach-row .opponent-bar-track {
  height: 15px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.coach-row .opponent-bar-scale {
  min-width: 22px;
  height: 15px;
  border-radius: 0;
  box-shadow: none;
}

.coach-row .opponent-segment {
  min-width: 0;
}

.coach-row .opponent-segment.win {
  background: #bdffa9;
}

.coach-row .opponent-segment.draw,
.coach-row .opponent-segment.unknown {
  background: #d9d9d9;
}

.coach-row .opponent-segment.loss {
  background: #ff7c7c;
}

.coach-details {
  margin: 12px 0 18px 60px;
  padding: 0;
  border: 0;
  background: transparent;
}

.coach-details .opponent-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.coach-details .opponent-summary-card {
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 14px 18px;
}

.coach-details .opponent-summary-card strong {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(26px, 2.35vw, 38px);
  font-weight: 800;
}

.coach-details .opponent-summary-card span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.coach-details .match-list {
  width: 100%;
  gap: 8px;
}

.coach-details .match-row {
  grid-template-columns: minmax(104px, 138px) minmax(0, 1fr) minmax(174px, 212px);
  min-height: 76px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  box-shadow: none;
  filter: none;
  -webkit-mask: none;
  mask: none;
}

.coach-details .match-row::before,
.coach-details .match-row::after {
  display: none;
}

.coach-details .match-row > div:first-child strong,
.coach-details .match-row > div:first-child small,
.coach-details .match-row > div:nth-child(2) strong,
.coach-details .match-row > div:nth-child(2) > span,
.coach-details .match-extra-meta {
  color: #ffffff;
}

.coach-details .match-row > div:first-child small,
.coach-details .match-row > div:nth-child(2) > span,
.coach-details .match-extra-meta {
  color: rgba(255, 255, 255, 0.72);
}

.coach-details .match-row > div:nth-child(2) strong {
  font-size: clamp(15px, 1.12vw, 18px);
}

.coach-details .match-ticket-stub {
  display: flex;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
}

.coach-details .result-pill {
  min-width: 86px;
  min-height: 32px;
  padding: 4px 12px;
  font-size: 20px;
}

.coach-details .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(208, 222, 255, 0.94);
  color: #001d66;
  padding: 5px 11px;
  text-align: right;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.12;
  white-space: nowrap;
}

.coach-details .match-extra-meta {
  grid-column: 2 / -1;
  max-width: none;
  font-size: 11px;
}

@media (max-width: 1120px) {
  .coach-hero-card {
    grid-template-columns: 1fr;
    padding: 24px 28px;
  }

  .coach-kpi-grid {
    grid-template-columns: 1fr;
  }

  .coach-story > .panel {
    padding: 22px 26px 30px;
  }

  .coach-row {
    grid-template-columns: 38px minmax(200px, 280px) minmax(190px, 1fr) minmax(72px, 94px) minmax(42px, 54px);
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .coach-hero-card,
  .coach-story > .panel {
    border-radius: 20px;
    padding: 18px;
  }

  .coach-row {
    grid-template-columns: 34px minmax(0, 1fr) minmax(42px, auto);
    gap: 8px 12px;
  }

  .coach-row .opponent-bar-track,
  .coach-record {
    grid-column: 2 / -1;
  }

  .coach-details {
    margin-left: 0;
  }

  .coach-details .opponent-summary,
  .coach-details .match-row {
    grid-template-columns: 1fr;
  }

  .coach-details .match-ticket-stub {
    align-items: flex-start;
  }

  .coach-details .tag {
    white-space: normal;
    text-align: left;
  }

  .coach-details .match-extra-meta {
    grid-column: 1;
  }
}
