/* Season review page. Scoped under .season-page so nothing leaks into the
   rest of the league UI. */

.season-page {
  --sr-gold: #e0b43c;
  --sr-gold-soft: #fdf3d8;
  --sr-silver: #9aa6ae;
  --sr-bronze: #c08457;
  --sr-ink: #17211c;
  --sr-muted: #65726c;
  --sr-line: #e2eae5;
  --sr-court: #11875a;
  --sr-court-dark: #0b6844;
  --sr-clay: #b96f39;
  --sr-radius: 18px;
  color: var(--sr-ink);
  font-variant-numeric: tabular-nums;
}

.season-page .container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* The photo backdrop of .page-shell is a lot under a full page of cards. */
.page-shell:has(.season-page)::before {
  opacity: 0.14;
}

/* Hero ------------------------------------------------------------------ */

.sr-hero {
  position: relative;
  margin: -28px 0 28px;
  padding: clamp(40px, 7vw, 76px) 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(217, 255, 79, 0.22), transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(185, 111, 57, 0.28), transparent 46%),
    linear-gradient(145deg, #04241a 0%, #0b6844 58%, #11875a 100%);
  color: #fff;
  text-align: center;
}

.sr-hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  opacity: 0.35;
  pointer-events: none;
}

.sr-hero-inner {
  position: relative;
  z-index: 1;
}

.sr-hero-eyebrow {
  margin: 0 0 10px;
  color: #bdf3d1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sr-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.sr-hero-lead {
  max-width: 44ch;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
}

.sr-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.sr-hero-stats div {
  flex: 1 1 128px;
  max-width: 190px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.sr-hero-stats strong {
  display: block;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
}

.sr-hero-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sr-hero-period {
  margin: 18px 0 0;
  color: #d9ff4f;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sr-hero-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.sr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

/* Buttons --------------------------------------------------------------- */

.sr-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.sr-button:hover,
.sr-button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.sr-button-primary {
  border-color: #d9ff4f;
  background: #d9ff4f;
  color: #123322;
}

.sr-button-primary:hover,
.sr-button-primary:focus-visible {
  background: #e6ff7d;
  color: #123322;
}

.sr-share .sr-button {
  border-color: var(--sr-line);
  background: #fff;
  color: var(--sr-court-dark);
}

.sr-share .sr-button-primary {
  border-color: var(--sr-court-dark);
  background: var(--sr-court-dark);
  color: #fff;
}

/* Sections -------------------------------------------------------------- */

.sr-body {
  padding-bottom: 40px;
}

.sr-section {
  margin-top: clamp(38px, 6vw, 64px);
}

.sr-section-head {
  margin-bottom: 18px;
}

.sr-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sr-section-head p {
  max-width: 62ch;
  margin: 6px 0 0;
  color: var(--sr-muted);
  font-size: 0.94rem;
}

.sr-empty {
  text-align: center;
  color: var(--sr-muted);
  font-weight: 700;
}

/* Champion + podium ----------------------------------------------------- */

.sr-champion {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: -6px;
}

.sr-champion-main {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(224, 180, 60, 0.5);
  border-radius: calc(var(--sr-radius) + 6px);
  background:
    radial-gradient(circle at 88% 0%, rgba(224, 180, 60, 0.22), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 22px 48px rgba(20, 60, 40, 0.12);
  text-align: center;
}

.sr-champion-trophy {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
}

.sr-champion-label {
  margin: 10px 0 2px;
  color: var(--sr-clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sr-champion-main h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sr-champion-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.sr-badge {
  padding: 6px 14px;
  border: 1px solid var(--sr-line);
  border-radius: 999px;
  background: #f4f8f6;
  color: var(--sr-court-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.sr-badge-gold {
  border-color: rgba(224, 180, 60, 0.6);
  background: var(--sr-gold-soft);
  color: #8a6512;
}

.sr-champion-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.sr-champion-stats div {
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(17, 135, 90, 0.07);
}

.sr-champion-stats strong {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 900;
  line-height: 1.1;
}

.sr-champion-stats span {
  display: block;
  margin-top: 4px;
  color: var(--sr-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sr-champion-years {
  margin: 18px 0 0;
  color: var(--sr-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.sr-year-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef3f0;
  color: var(--sr-court-dark);
  font-weight: 800;
}

.sr-year-chip.is-current {
  background: var(--sr-gold);
  color: #fff;
}

.sr-podium {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--sr-line);
  border-radius: calc(var(--sr-radius) + 6px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(14, 45, 30, 0.07);
}

.sr-podium-step {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sr-podium-medal {
  font-size: 1.7rem;
  line-height: 1;
}

.sr-podium-name {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sr-podium-points {
  color: var(--sr-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.sr-podium-block {
  display: grid;
  width: 100%;
  margin-top: 8px;
  border-radius: 12px 12px 0 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  place-items: center;
}

.sr-podium-1 .sr-podium-block {
  height: 118px;
  background: linear-gradient(180deg, #e9c559, #c99a22);
}

.sr-podium-2 .sr-podium-block {
  height: 88px;
  background: linear-gradient(180deg, #c3ced6, #97a4ad);
}

.sr-podium-3 .sr-podium-block {
  height: 66px;
  background: linear-gradient(180deg, #d79c6d, #b8793f);
}

/* Tiles ----------------------------------------------------------------- */

.sr-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.sr-tile {
  padding: 18px 14px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(14, 45, 30, 0.05);
  text-align: center;
}

.sr-tile strong {
  display: block;
  color: var(--sr-court-dark);
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  font-weight: 900;
  line-height: 1;
}

.sr-tile span {
  display: block;
  margin-top: 8px;
  color: var(--sr-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Table ----------------------------------------------------------------- */

.sr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(14, 45, 30, 0.06);
}

.sr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sr-table th {
  padding: 14px 10px;
  border-bottom: 1px solid var(--sr-line);
  background: #f7faf8;
  color: var(--sr-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.sr-table th:nth-child(2) {
  text-align: left;
}

.sr-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef3f0;
  text-align: center;
  white-space: nowrap;
}

.sr-table tbody tr:last-child td {
  border-bottom: 0;
}

.sr-table-name {
  text-align: left !important;
  font-weight: 800;
}

.sr-table-name a {
  color: var(--sr-ink);
  text-decoration: none;
}

.sr-table-name a:hover {
  color: var(--sr-court-dark);
  text-decoration: underline;
}

.sr-rank {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef3f0;
  color: var(--sr-court-dark);
  font-size: 0.8rem;
  font-weight: 900;
  place-items: center;
}

.sr-row-1 .sr-rank { background: var(--sr-gold); color: #fff; }
.sr-row-2 .sr-rank { background: var(--sr-silver); color: #fff; }
.sr-row-3 .sr-rank { background: var(--sr-bronze); color: #fff; }
.sr-row-medal { background: rgba(224, 180, 60, 0.05); }

.sr-points {
  display: inline-block;
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(17, 135, 90, 0.1);
  color: var(--sr-court-dark);
  font-weight: 900;
}

.sr-games-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.sr-games-bar {
  display: block;
  width: 88px;
  height: 5px;
  border-radius: 999px;
  background: #e8efeb;
  overflow: hidden;
}

.sr-games-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sr-court), var(--sr-court-dark));
}

.sr-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
}

.sr-form-dot {
  display: inline-grid;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  place-items: center;
}

.sr-form-dot.win { background: var(--sr-court); }
.sr-form-dot.loss { background: #d94a57; }

/* Awards ---------------------------------------------------------------- */

.sr-awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.sr-award {
  position: relative;
  padding: 20px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: 0 14px 30px rgba(14, 45, 30, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sr-award:hover {
  box-shadow: 0 18px 38px rgba(14, 45, 30, 0.1);
  transform: translateY(-3px);
}

.sr-award.is-champion {
  border-color: rgba(224, 180, 60, 0.55);
  background: linear-gradient(180deg, #fffdf6, #fff8e8);
}

.sr-award-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f2f7f4;
  font-size: 1.4rem;
  place-items: center;
}

.sr-award h3 {
  margin: 14px 0 2px;
  color: var(--sr-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-award-winner {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sr-award-value {
  margin: 10px 0 0;
  color: var(--sr-court-dark);
}

.sr-award-value strong {
  font-size: 1.6rem;
  font-weight: 900;
}

.sr-award-value span {
  color: var(--sr-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.sr-award-note {
  margin: 6px 0 0;
  color: var(--sr-clay);
  font-size: 0.82rem;
  font-weight: 800;
}

.sr-award-shared,
.sr-award-runners {
  margin: 10px 0 0;
  color: var(--sr-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.sr-award-runners span {
  display: inline-block;
  margin-right: 8px;
}

.sr-award-runners em {
  color: var(--sr-ink);
  font-style: normal;
  font-weight: 800;
}

/* Match of the season --------------------------------------------------- */

.sr-match-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--sr-radius) + 4px);
  box-shadow: 0 20px 44px rgba(14, 45, 30, 0.12);
}

.sr-match-hero-main {
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 85% 12%, rgba(217, 255, 79, 0.18), transparent 48%),
    linear-gradient(140deg, #06291d, #0b6844);
  color: #fff;
}

.sr-match-hero-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(217, 255, 79, 0.18);
  color: #d9ff4f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sr-match-hero-players {
  margin: 18px 0 0;
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  font-weight: 900;
  line-height: 1.25;
}

.sr-match-hero-players em {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8em;
  font-style: normal;
}

.sr-match-hero-players span {
  color: rgba(255, 255, 255, 0.82);
}

.sr-match-hero-score {
  margin: 14px 0 0;
  color: #d9ff4f;
  font-size: clamp(1.5rem, 4.6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sr-match-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.sr-match-hero-meta span {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.sr-match-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
}

.sr-drama-title {
  margin: 0 0 12px;
  color: var(--sr-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-drama-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #eef3f0;
  font-size: 0.86rem;
}

.sr-drama-row:first-of-type {
  border-top: 0;
}

.sr-drama-players {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sr-drama-players em {
  color: var(--sr-muted);
  font-style: normal;
  font-weight: 700;
}

.sr-drama-score {
  color: var(--sr-court-dark);
  font-weight: 900;
  white-space: nowrap;
}

/* Records + rivalries --------------------------------------------------- */

.sr-records,
.sr-rivalries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.sr-record,
.sr-rivalry {
  padding: 20px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: 0 14px 30px rgba(14, 45, 30, 0.05);
}

.sr-record-icon {
  font-size: 1.5rem;
}

.sr-record h3 {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 900;
}

.sr-record-value {
  margin: 4px 0 12px;
}

.sr-record-value strong {
  color: var(--sr-court-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

.sr-record-value span {
  color: var(--sr-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sr-match-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #eef3f0;
}

.sr-match-players {
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sr-match-players strong {
  font-weight: 900;
}

.sr-match-players em {
  margin: 0 5px;
  color: var(--sr-muted);
  font-style: normal;
}

.sr-match-score {
  color: var(--sr-court-dark);
  font-weight: 900;
  white-space: nowrap;
}

.sr-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--sr-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.sr-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef3f0;
  color: var(--sr-court-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.sr-tag-clay {
  background: #fff1e6;
  color: var(--sr-clay);
}

.sr-tag-gold {
  background: var(--sr-gold-soft);
  color: #8a6512;
}

.sr-rivalry-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sr-rivalry-margin {
  display: inline-grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(140deg, #0b6844, #11875a);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  place-items: center;
}

.sr-rivalry-players {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sr-rivalry-players em {
  color: var(--sr-muted);
  font-style: normal;
}

.sr-rivalry-score {
  margin: 2px 0 0;
  color: var(--sr-court-dark);
  font-weight: 900;
}

.sr-rivalry-score span {
  color: var(--sr-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sr-rivalry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #eef3f0;
  color: var(--sr-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Timeline -------------------------------------------------------------- */

.sr-chart-card {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(14, 45, 30, 0.06);
}

.sr-chart-scroll {
  overflow-x: auto;
}

.sr-chart {
  width: 100%;
  min-width: 680px;
  height: auto;
}

.sr-chart-grid {
  stroke: #eef3f0;
  stroke-width: 1;
}

.sr-chart-axis {
  fill: #9aa8a1;
  font-size: 11px;
  font-weight: 700;
}

.sr-chart-line {
  fill: none;
  stroke: #cfdbd4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-chart-line.is-top { stroke-width: 3.4; }
.sr-chart-line.is-top-1 { stroke: #e0b43c; }
.sr-chart-line.is-top-2 { stroke: #11875a; }
.sr-chart-line.is-top-3 { stroke: #b96f39; }

.sr-chart-dot { fill: #cfdbd4; }
.sr-chart-dot.is-top-1 { fill: #e0b43c; }
.sr-chart-dot.is-top-2 { fill: #11875a; }
.sr-chart-dot.is-top-3 { fill: #b96f39; }

.sr-chart-name {
  fill: #8c9a93;
  font-size: 11.5px;
  font-weight: 700;
}

.sr-chart-name.is-top { font-weight: 900; }
.sr-chart-name.is-top-1 { fill: #b98f1f; }
.sr-chart-name.is-top-2 { fill: #0b6844; }
.sr-chart-name.is-top-3 { fill: #a35f2c; }

.sr-months {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef3f0;
}

.sr-months-title {
  margin: 0 0 12px;
  color: var(--sr-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-months-bars {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 130px;
}

.sr-month {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.sr-month-count {
  font-size: 0.78rem;
  font-weight: 900;
}

.sr-month-bar {
  display: block;
  width: min(100%, 54px);
  min-height: 6px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #2aa274, #0b6844);
}

.sr-month-label {
  color: var(--sr-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Player cards ---------------------------------------------------------- */

.sr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.sr-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: 0 14px 30px rgba(14, 45, 30, 0.05);
}

.sr-card-1 { border-color: rgba(224, 180, 60, 0.55); background: linear-gradient(180deg, #fffdf6, #fffaf0); }
.sr-card-2 { border-color: rgba(154, 166, 174, 0.5); }
.sr-card-3 { border-color: rgba(192, 132, 87, 0.45); }

.sr-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.sr-card-rank {
  display: inline-grid;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef3f0;
  color: var(--sr-court-dark);
  font-size: 1rem;
  font-weight: 900;
  place-items: center;
}

.sr-card-1 .sr-card-rank { background: var(--sr-gold); color: #fff; }
.sr-card-2 .sr-card-rank { background: var(--sr-silver); color: #fff; }
.sr-card-3 .sr-card-rank { background: var(--sr-bronze); color: #fff; }

.sr-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sr-card-head h3 a {
  color: inherit;
  text-decoration: none;
}

.sr-card-head h3 a:hover {
  color: var(--sr-court-dark);
  text-decoration: underline;
}

.sr-card-verdict {
  margin: 4px 0 0;
  color: var(--sr-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.sr-card-points {
  color: var(--sr-court-dark);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.sr-card-points em {
  display: block;
  color: var(--sr-muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sr-card-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.sr-card-award {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sr-gold-soft);
  color: #8a6512;
  font-size: 0.72rem;
  font-weight: 800;
}

.sr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sr-card-grid div {
  padding: 10px 6px;
  border-radius: 12px;
  background: #f7faf8;
  text-align: center;
}

.sr-card-grid span {
  display: block;
  color: var(--sr-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sr-card-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
}

.sr-card-form {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--sr-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sr-card-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #eef3f0;
}

.sr-card-highlights dt {
  color: var(--sr-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sr-card-highlights dd {
  margin: 2px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.sr-card-highlights dd span {
  color: var(--sr-muted);
  font-weight: 700;
}

/* History --------------------------------------------------------------- */

.sr-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.sr-history-card {
  padding: 20px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: 0 14px 30px rgba(14, 45, 30, 0.05);
}

.sr-history-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 900;
}

.sr-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-history-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid #eef3f0;
  font-size: 0.88rem;
  font-weight: 700;
}

.sr-history-list li:first-child {
  border-top: 0;
}

.sr-history-list li.is-current {
  color: var(--sr-court-dark);
  font-weight: 900;
}

.sr-history-year {
  min-width: 46px;
  color: var(--sr-muted);
  font-weight: 800;
}

.sr-history-list strong {
  margin-left: auto;
  font-weight: 900;
}

.sr-history-more {
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.sr-history-more a {
  color: var(--sr-court-dark);
}

/* Share + send ---------------------------------------------------------- */

.sr-share {
  margin-top: clamp(38px, 6vw, 64px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--sr-line);
  border-radius: calc(var(--sr-radius) + 4px);
  background: linear-gradient(140deg, #f4f9f6, #ffffff);
  text-align: center;
}

.sr-share h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.sr-share > p {
  max-width: 56ch;
  margin: 8px auto 0;
  color: var(--sr-muted);
}

.sr-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.sr-share-url {
  padding: 10px 16px;
  border: 1px dashed var(--sr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sr-court-dark);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sr-send {
  max-width: 520px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--sr-line);
}

.sr-send-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
}

.sr-send-note {
  margin: 4px 0 0;
  color: var(--sr-muted);
  font-size: 0.84rem;
}

.sr-send-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.sr-send-row .form-select {
  max-width: 220px;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
  .sr-champion,
  .sr-match-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .sr-match-hero-side {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .sr-hero-stats div {
    flex-basis: calc(50% - 10px);
    max-width: none;
  }

  .sr-champion-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-hide-mobile {
    display: none;
  }

  .sr-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-months-bars {
    height: 110px;
  }

  .sr-table th,
  .sr-table td {
    padding: 11px 7px;
  }

  .sr-table-name {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-award,
  .sr-button {
    transition: none;
  }
}

@media print {
  .sr-hero-actions,
  .sr-share,
  .topbar,
  .live-strip {
    display: none !important;
  }

  .sr-hero {
    color: #000;
    background: none;
  }

  .sr-hero-eyebrow,
  .sr-hero-lead,
  .sr-hero-stats span {
    color: #333;
  }

  .sr-award,
  .sr-card,
  .sr-record,
  .sr-rivalry,
  .sr-history-card,
  .sr-tile {
    box-shadow: none;
    break-inside: avoid;
  }
}
