/* Lech Stats / Sezony: season rhythm instead of another flat table. */
.dashboard-stat-content:has(.seasons-view) {
  background: rgba(246, 248, 251, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.dashboard-stat-content:has(.seasons-view) .filters,
.dashboard-stat-content:has(.seasons-view) .filters.filter-count-4,
.dashboard-stat-content:has(.seasons-view) .filters.filter-count-3,
.dashboard-stat-content:has(.seasons-view) .filters.filter-count-2 {
  justify-content: start;
  width: min(869px, 100%);
  margin: 0 0 16px;
}

.seasons-view {
  display: grid;
  width: min(1242px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.season-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 20px;
  align-items: stretch;
  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;
}

.season-hero-card .start-eyebrow,
.season-timeline-panel .start-eyebrow,
.season-gap-card .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;
}

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

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

.season-hero-score {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  padding: 18px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.season-hero-score strong {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 800;
  line-height: 1.04;
}

.season-hero-score span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

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

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

.season-timeline-panel,
.season-gap-card {
  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);
}

.season-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

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

.season-heading p,
.season-gap-card p {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.48;
}

.seasons-view .season-list {
  gap: 0;
}

.seasons-view .season-row {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(260px, 1fr) minmax(86px, 120px);
  gap: 22px;
  align-items: center;
  min-height: 66px;
  border-radius: 8px;
  padding: 10px 0;
}

.season-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.seasons-view .season-name {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(18px, 1.34vw, 24px);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 29, 102, 0.36);
}

.season-main small,
.season-rhythm small,
.seasons-view .season-count small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.season-rhythm {
  display: grid;
  gap: 8px;
}

.season-month-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  max-width: 540px;
}

.season-month-strip span {
  display: grid;
  min-height: 23px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.season-month-strip span.is-active {
  border-color: rgba(189, 255, 169, 0.62);
  background: #bdffa9;
  color: #001d66;
}

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

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

.seasons-view .opponent-segment {
  min-width: 0;
}

.seasons-view .opponent-segment.win {
  background: #bdffa9;
}

.seasons-view .opponent-segment.draw,
.seasons-view .opponent-segment.unknown {
  background: #d9d9d9;
}

.seasons-view .opponent-segment.loss {
  background: #ff7c7c;
}

.seasons-view .season-count {
  display: grid;
  gap: 2px;
  color: #ffffff;
  text-align: right;
}

.seasons-view .season-count strong {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 800;
  line-height: 1;
}

.season-gap-card {
  display: grid;
  gap: 10px;
}

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

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

  .season-timeline-panel,
  .season-gap-card {
    padding: 22px 26px 30px;
  }

  .seasons-view .season-row {
    grid-template-columns: minmax(150px, 220px) minmax(190px, 1fr) minmax(70px, 94px);
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .dashboard-stat-content:has(.seasons-view) .filters,
  .dashboard-stat-content:has(.seasons-view) .filters.filter-count-4,
  .dashboard-stat-content:has(.seasons-view) .filters.filter-count-3,
  .dashboard-stat-content:has(.seasons-view) .filters.filter-count-2 {
    width: 100%;
  }

  .season-hero-card,
  .season-timeline-panel,
  .season-gap-card {
    border-radius: 20px;
    padding: 18px;
  }

  .seasons-view .season-row {
    grid-template-columns: minmax(0, 1fr) minmax(48px, auto);
    gap: 8px 14px;
  }

  .season-rhythm {
    grid-column: 1 / -1;
  }

  .season-month-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .seasons-view .season-name {
    white-space: normal;
  }
}
