:root {
  --hs-primary: #003f5f;
  --hs-secondary: #ffd84d;
  --hs-card: #0b4862;
  --hs-card-2: #0d5978;
  --sb-grad1: #002b40;
  --sb-grad2: #013d5b;
  --sb-yellow-grad1: #ffd84d;
  --sb-yellow-grad2: #efc21f;
  --hs-points: #34e0df;
  --hs-white: #ffffff;
  --hs-bg: #e9e9ea;
  --hs-shadow: 0 18px 38px rgba(0, 48, 74, 0.16);
  --hs-score-size: 54px;
  --hs-score-gap: 9px;
  --hs-score-track: 249px;
  --hs-header-content-lift: 20px;
}

* {
  box-sizing: border-box;
}

#formResponse {
  width: 100%;
}

#formResponse > .scoreboard {
  width: 100%;
  padding: 12px 0;
  display: flex;
  justify-content: center;
}

.ended-match {
  margin: 10px 0 12px;
}

.ended-match p {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 700;
}

#formResponse > .scoreboard > .match-container {
  width: min(1120px, calc(100vw - 112px)) !important;
  max-width: 1120px !important;
  margin: 0 auto;
  flex: 0 1 auto;
}

.sb-header {
  display: grid;
  grid-template-columns: 178px auto minmax(0, 1fr) auto max-content 96px;
  grid-template-areas: "start admin category ended time stats";
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 0;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(180deg, var(--sb-yellow-grad1), var(--sb-yellow-grad2));
  overflow: hidden;
}

.sb-header-start {
  display: inline-flex;
  grid-area: start;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 178px;
  flex-wrap: nowrap;
  height: 100%;
}

.sb-court-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 172px;
  height: 100%;
  padding: 0 8px 0 10px;
  border-radius: 26px 26px 18px 18px;
  background: var(--hs-white);
  box-shadow: none;
}

.sb-court-pill--inactive {
  justify-content: center;
  gap: 8px;
}

.sb-court-pill--video {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.sb-court-pill--video > .sb-court-text,
.sb-court-pill--video > .court-admin-btn {
  grid-column: 2;
  justify-self: center;
}

.sb-court-pill--video > .happycam-round-btn {
  grid-column: 3;
  justify-self: end;
}

.sb-court-pill--admin {
  justify-content: center;
  gap: 6px;
}

.sb-court-text {
  display: inline-flex;
  align-items: center;
  color: var(--hs-primary);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.court-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.court-admin-btn:focus-visible,
.happycam-round-btn:focus-visible,
.sb-admin-link:focus-visible,
.sb-stats-pill:focus-visible {
  outline: 2px solid rgba(0, 63, 95, 0.5);
  outline-offset: 2px;
}

.sb-cam-dot,
.happycam-round-btn,
.sb-edit-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: var(--hs-primary);
  text-decoration: none;
}

.happycam-round-btn {
  background: transparent;
}

.sb-cam-icon {
  display: block;
  width: 8px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cpath fill='%23ffd84d' d='M2.7 2A2.7 2.7 0 0 0 0 4.7v6.6A2.7 2.7 0 0 0 2.7 14h8.2a2.7 2.7 0 0 0 2.7-2.7V4.7A2.7 2.7 0 0 0 10.9 2Zm11.2 2.2a.8.8 0 0 0-1.3.6v6.4a.8.8 0 0 0 1.3.6l4.7-3.1a.8.8 0 0 0 0-1.3Z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.sb-cam-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.sb-edit-icon {
  display: block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd84d' d='m3 17.25l-.75 3.75L6 20.25l10.94-10.94l-3-3zm15.71-9.04a1.003 1.003 0 0 0 0-1.42l-1.5-1.5a1.003 1.003 0 0 0-1.42 0l-1.13 1.13l3 3z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.sb-cam-dot--disabled {
  background: #d8e0e5;
}

.sb-cam-dot--disabled .sb-cam-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cpath fill='%2397a5ae' d='M2.7 2A2.7 2.7 0 0 0 0 4.7v6.6A2.7 2.7 0 0 0 2.7 14h8.2a2.7 2.7 0 0 0 2.7-2.7V4.7A2.7 2.7 0 0 0 10.9 2Zm11.2 2.2a.8.8 0 0 0-1.3.6v6.4a.8.8 0 0 0 1.3.6l4.7-3.1a.8.8 0 0 0 0-1.3Z'/%3E%3C/svg%3E");
}

.sb-ended-chip,
.sb-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--hs-primary);
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.sb-admin-link {
  grid-area: admin;
  justify-self: start;
  align-self: center;
  transform: translateY(calc((var(--hs-header-content-lift) * -1) + 3px));
}

.sb-category,
.sb-time {
  color: var(--hs-primary);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.sb-category {
  grid-area: category;
  min-width: 0;
  font-size: clamp(16px, 1.45vw, 24px);
  letter-spacing: -0.03em;
  justify-self: start;
  align-self: center;
}

.sb-ended-chip {
  grid-area: ended;
  justify-self: end;
  align-self: center;
}

.sb-time {
  grid-area: time;
  justify-self: end;
  font-size: clamp(13px, 1.15vw, 18px);
  align-self: center;
  padding-right: 4px;
  text-align: right;
}

.sb-header .sb-time--meta {
  grid-area: category;
  justify-self: center;
  padding-right: 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.sb-header .sb-time--meta .cm-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 5px;
  color: var(--hs-white);
  line-height: 1;
}

.sb-header .sb-time--meta .cm-category-pill--pink {
  background: #c92f8e;
}

.sb-header .sb-time--meta .cm-category-pill--blue {
  background: #0b5f8a;
}

.sb-header .sb-time--meta .cm-category-pill--plain {
  background: transparent;
  color: var(--hs-primary);
  padding: 0;
  border-radius: 0;
}

.sb-header .sb-time--meta .cm-category-pill--plain .cm-category-view,
.sb-header .sb-time--meta .cm-category-pill--plain .cm-age-view {
  color: var(--hs-primary);
}

.sb-header .sb-time--meta .cm-category-view,
.sb-header .sb-time--meta .cm-age-view,
.sb-header .sb-time--meta .cm-phase-view {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-weight: inherit;
  line-height: 1;
  white-space: nowrap;
}

.sb-header .sb-time--meta .cm-age-view {
  margin-left: 0;
}

.sb-header .sb-time--meta .cm-phase-view {
  margin-left: 8px;
  color: var(--hs-primary);
}

.sb-stats-pill,
.sb-stats-pill--disabled {
  grid-area: stats;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 100%;
  border-radius: 18px 18px 12px 12px;
  background: var(--hs-white);
  box-shadow: none;
  text-decoration: none;
  justify-self: end;
  overflow: hidden;
}

.sb-stats-pill {
  cursor: pointer;
}

.sb-stats-pill--disabled {
  pointer-events: none;
}

.sb-stats-pill--disabled .sb-stats-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32' viewBox='0 0 40 32'%3E%3Crect x='0' y='12' width='10' height='20' rx='2' fill='%23c9d2d8'/%3E%3Crect x='13' y='4' width='10' height='28' rx='2' fill='%2397a5ae'/%3E%3Crect x='26' y='0' width='10' height='32' rx='2' fill='%2397a5ae'/%3E%3C/svg%3E");
}

.sb-stats-icon {
  display: block;
  width: 17px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32' viewBox='0 0 40 32'%3E%3Crect x='0' y='12' width='10' height='20' rx='2' fill='%23ffd84d'/%3E%3Crect x='13' y='4' width='10' height='28' rx='2' fill='%23003f5f'/%3E%3Crect x='26' y='0' width='10' height='32' rx='2' fill='%23003f5f'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.sb-court-pill > *,
.sb-category,
.sb-ended-chip,
.sb-time,
.sb-stats-pill > * {
  transform: translateY(calc(var(--hs-header-content-lift) * -1));
}

.sb-category {
  transform: translateY(calc((var(--hs-header-content-lift) * -1) + 3px));
}

.court-admin-btn,
.court-admin-btn .sb-court-text {
  transform: translateY(calc((var(--hs-header-content-lift) * -1) + 12px));
}

@media (min-width: 769px) {
  .sb-court-pill > .sb-court-text {
    font-size: 24px;
    transform: translateY(calc((var(--hs-header-content-lift) * -1) + 2px));
  }

  .sb-category {
    font-size: 24px;
  }

  .sb-time {
    font-size: 20px;
    transform: translateY(calc((var(--hs-header-content-lift) * -1) + 4px));
  }
}

.sb-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: -34px;
  padding: 14px 18px 16px;
  border-radius: 20px;

  background: linear-gradient(180deg, var(--sb-grad1), var(--sb-grad2));
  
  box-shadow: var(--hs-shadow);
  overflow: hidden;
}

.sb-body-clickable {
  cursor: pointer;
}

.player-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 0;
}

.ServiceDot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--hs-secondary);
  box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.16);
}

.ServiceDot--hidden {
  visibility: hidden;
  box-shadow: none;
}

.player-info {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-right: 10px;
}

.player-block {
  min-width: 0;
}

.player-name {
  display: block;
  color: var(--hs-white);
  font-size: clamp(15px, 1.3vw, 24px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-name.winner {
  color: var(--hs-white);
}

.player-club {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(10px, 0.82vw, 13px);
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-scores {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--hs-score-size);
  justify-content: end;
  gap: var(--hs-score-gap);
  align-items: center;
  min-width: max-content;
}

.set-score,
.PtsBox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hs-score-size);
  height: var(--hs-score-size);
  border-radius: 16px;
  background: var(--hs-card-2);
  color: var(--hs-white);
  text-align: center;
}

.set-score {
  border: 4px solid transparent;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.set-score.set-won {
  border-color: var(--hs-secondary);
  background: var(--hs-secondary);
  color: var(--hs-primary);
  font-weight: 500;
}

.set-score.set-encours {
  border-width: 2px;
  border-color: var(--hs-secondary);
  background: rgba(11, 72, 98, 0.96);
  color: var(--hs-white);
  font-weight: 500;
}

.PtsBox {
  border: 2px solid var(--hs-points);
  background: transparent;
}

.Pts {
  display: block;
  color: var(--hs-white);
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.sb-divider {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 12px;
}

.sb-divider-line {
  display: block;
  grid-column: 2;
  width: 60%;
  height: 1px;
  justify-self: start;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.court-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.court-modal-box {
  width: min(420px, calc(100% - 24px));
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.court-modal-box h3 {
  margin: 0 0 12px;
  color: #0d2e3f;
}

.court-modal-input {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 16px;
}

.court-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.court-modal-cancel,
.court-modal-save {
  height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.court-modal-cancel {
  background: #e9ecef;
}

.court-modal-save {
  background: var(--hs-primary);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .sb-body-clickable:hover {
    transform: translateY(-1px);
  }

  .happycam-round-btn:hover,
  .sb-stats-pill:hover,
  .sb-admin-link:hover,
  .court-admin-btn:hover .sb-court-text {
    filter: brightness(0.96);
  }
}

@media (max-width: 960px) {
  :root {
    --hs-score-size: 64px;
    --hs-score-gap: 12px;
    --hs-score-track: 292px;
    --hs-header-content-lift: 15px;
  }

  .sb-header {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "start admin category ended stats"
      "start admin time ended stats";
    gap: 10px 14px;
    min-height: 74px;
    padding: 0;
  }

  .sb-header-start {
    grid-area: start;
    width: auto;
  }

  .sb-category {
    grid-area: category;
    align-self: end;
  }

  .sb-admin-link {
    grid-area: admin;
    justify-self: start;
    align-self: center;
  }

  .sb-ended-chip {
    grid-area: ended;
    align-self: center;
    justify-self: end;
  }

  .sb-time {
    grid-area: time;
    justify-self: start;
  }

  .sb-stats-pill,
  .sb-stats-pill--disabled {
    grid-area: stats;
    justify-self: end;
  }

  .sb-body {
    margin-top: -2px;
    padding: 22px 20px 24px;
  }

  .player-row {
    gap: 14px;
  }

  .set-score,
  .PtsBox {
    border-radius: 22px;
  }

  .set-score,
  .Pts {
    font-size: 30px;
  }
}

@media (min-width: 769px) and (max-width: 1400px) {
  :root {
    --hs-score-size: 46px;
    --hs-score-gap: 8px;
    --hs-header-content-lift: 13px;
  }

  #formResponse > .scoreboard {
    padding: 10px 0;
  }

  #formResponse > .scoreboard > .match-container {
    width: min(980px, calc(100vw - 44px)) !important;
  }

  .sb-header {
    grid-template-columns: 150px auto minmax(0, 1fr) auto max-content 74px;
    grid-template-areas: "start admin category ended time stats";
    min-height: 60px;
    gap: 8px;
    border-radius: 22px 22px 16px 16px;
  }

  .sb-header-start {
    width: 150px;
    align-self: center;
  }

  .sb-court-pill {
    width: 150px;
    min-width: 150px;
    height: 60px;
    min-height: 60px;
    padding: 0 8px 0 10px;
    border-radius: 22px 22px 16px 16px;
  }

  .sb-court-pill > *,
  .sb-category,
  .sb-time,
  .sb-stats-pill > *,
  .sb-stats-pill--disabled > * {
    transform: translateY(calc(var(--hs-header-content-lift) * -1));
  }

  .sb-header .sb-court-pill > .sb-court-text,
  .sb-header .sb-court-pill > .court-admin-btn,
  .sb-header .sb-court-pill > .happycam-round-btn,
  .sb-header .sb-category,
  .sb-header .sb-time,
  .sb-header .sb-ended-chip,
  .sb-header .sb-admin-link,
  .sb-header .sb-stats-pill > *,
  .sb-header .sb-stats-pill--disabled > * {
    transform: translateY(calc(var(--hs-header-content-lift) * -1));
  }

  .sb-court-pill > .sb-court-text {
    font-size: 18px;
  }

  .sb-category {
    font-size: 18px;
    align-self: center;
    justify-self: start;
  }

  .sb-time {
    font-size: 15px;
    align-self: center;
    justify-self: end;
    padding-right: 2px;
  }

  .sb-ended-chip,
  .sb-admin-link {
    min-height: 24px;
    padding: 0 8px;
    font-size: 13px;
    align-self: center;
  }

  .sb-stats-pill,
  .sb-stats-pill--disabled {
    width: 74px;
    height: 60px;
    min-height: 60px;
    border-radius: 22px 22px 16px 16px;
    align-self: center;
    justify-self: end;
  }

  .sb-stats-icon {
    width: 15px;
    height: 12px;
  }

  .sb-body {
    margin-top: -28px;
    padding: 10px 12px 12px;
    border-radius: 20px;
  }

  .player-row {
    gap: 10px;
    padding: 4px 0;
  }

  .player-name {
    font-size: 19px;
  }

  .player-club {
    font-size: 11px;
  }

  .set-score,
  .PtsBox {
    border-radius: 14px;
  }

  .set-score,
  .Pts {
    font-size: 24px;
  }

  .sb-divider {
    min-height: 10px;
  }

  .sb-divider-line {
    width: 56%;
  }

  .court-admin-btn,
  .court-admin-btn .sb-court-text {
    transform: translateY(calc(var(--hs-header-content-lift) * -1));
  }
}

@media (min-width: 1401px) {
  :root {
    --hs-score-size: 49px;
    --hs-score-gap: 8px;
    --hs-header-content-lift: 18px;
  }

  #formResponse > .scoreboard > .match-container {
    width: min(1008px, calc(100vw - 100px)) !important;
    max-width: 1008px !important;
  }

  .sb-header {
    grid-template-columns: 160px auto minmax(0, 1fr) auto max-content 86px;
    min-height: 60px;
    gap: 9px;
    border-radius: 23px 23px 16px 16px;
  }

  .sb-header-start {
    width: 160px;
  }

  .sb-court-pill {
    width: 155px;
    padding: 0 7px 0 9px;
    border-radius: 23px 23px 16px 16px;
  }

  .sb-court-text,
  .sb-court-pill > .sb-court-text {
    font-size: 22px;
  }

  .sb-category {
    font-size: 22px;
  }

  .sb-time {
    font-size: 18px;
  }

  .sb-ended-chip,
  .sb-admin-link {
    min-height: 24px;
    padding: 0 9px;
    font-size: 16px;
  }

  .sb-stats-pill,
  .sb-stats-pill--disabled {
    width: 76px;
    border-radius: 16px 16px 11px 11px;
  }

  .sb-stats-icon {
    width: 15px;
    height: 12px;
  }

  .sb-cam-dot,
  .happycam-round-btn,
  .sb-edit-dot {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .sb-cam-emoji {
    font-size: 11px;
  }

  .sb-body {
    margin-top: -30px;
    padding: 13px 16px 14px;
    border-radius: 18px;
  }

  .player-row {
    gap: 9px;
    padding: 4px 0;
  }

  .player-name {
    font-size: clamp(14px, 1.17vw, 22px);
  }

  .player-club {
    font-size: clamp(9px, 0.74vw, 12px);
  }

  .set-score,
  .Pts {
    font-size: 20px;
  }

  .set-score,
  .PtsBox {
    border-radius: 14px;
  }

  .sb-divider {
    min-height: 10px;
  }
}

@media (max-width: 768px) {
  :root {
    --hs-score-size: 37px;
    --hs-score-gap: 6px;
    --hs-score-track: 254px;
    --hs-header-content-lift: 10px;
  }

  #formResponse > .scoreboard {
    padding: 8px 0;
  }

  #formResponse > .scoreboard > .match-container {
    width: min(560px, calc(100vw - 28px)) !important;
  }

  .sb-header {
    grid-template-columns: 118px auto minmax(0, 1fr) auto max-content 62px;
    grid-template-areas: "start admin category ended time stats";
    align-items: center;
    gap: 8px;
    min-height: 55px;
    padding: 0;
    border-radius: 19px 19px 14px 14px;
    overflow: hidden;
  }

  .sb-header-start {
    grid-area: start;
    min-width: 0;
    width: 118px;
    align-self: center;
  }

  .sb-court-pill {
    width: 118px;
    min-width: 118px;
    height: 55px;
    min-height: 55px;
    padding: 0 8px 0 11px;
    gap: 6px;
    border-radius: 19px 19px 14px 14px;
  }

  .sb-court-text {
    font-size: 14px;
    font-weight: 700;
  }

  .sb-cam-dot,
  .happycam-round-btn,
  .sb-edit-dot {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .sb-cam-icon {
    width: 10px;
    height: 7px;
  }

  .sb-cam-emoji {
    font-size: 11px;
  }

  .sb-edit-icon {
    width: 7px;
    height: 7px;
  }

  .sb-ended-chip,
  .sb-admin-link {
    min-height: 27px;
    padding: 0 10px;
    font-size: 12px;
  }

  .sb-category {
    grid-area: category;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    align-self: center;
    justify-self: start;
    padding: 0;
    transform: translateY(calc((var(--hs-header-content-lift) * -1) + 1px));
  }

  .sb-admin-link {
    grid-area: admin;
    justify-self: start;
    align-self: center;
  }

  .sb-ended-chip {
    grid-area: ended;
    justify-self: end;
    align-self: center;
    min-height: 22px;
    padding: 0 6px;
    font-size: 11px;
  }

  .sb-time {
    grid-area: time;
    justify-self: end;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding-right: 2px;
  }

  .sb-stats-pill,
  .sb-stats-pill--disabled {
    grid-area: stats;
    align-self: center;
    justify-self: end;
    width: 62px;
    height: 55px;
    min-height: 55px;
    border-radius: 19px 19px 14px 14px;
  }

  .sb-stats-icon {
    width: 18px;
    height: 14px;
  }

  .sb-body {
    margin-top: -19px;
    padding: 8px 10px 10px;
    border-radius: 19px;
  }

  .player-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
  }

  .player-scores {
    grid-column: auto;
    justify-content: end;
    margin-top: 0;
  }

  .player-name {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-club {
    font-size: 10px;
  }

  .ServiceDot {
    width: 8px;
    height: 8px;
    margin-top: 0;
    box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.16);
  }

  .set-score,
  .PtsBox {
    border-width: 3px;
    border-radius: 13px;
  }

  .set-score.set-encours {
    border-width: 1.5px;
  }

  .PtsBox {
    border-width: 1.5px;
  }

  .set-score,
  .Pts {
    font-size: 18px;
  }

  .sb-divider {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 10px;
  }

  .sb-divider-line {
    grid-column: 2;
  }

  .court-admin-btn,
  .court-admin-btn .sb-court-text {
    transform: translateY(calc((var(--hs-header-content-lift) * -1) + 5px));
  }
}

@media (max-width: 480px) {
  :root {
    --hs-score-size: 32px;
    --hs-score-gap: 5px;
    --hs-header-content-lift: 8px;
  }

  #formResponse > .scoreboard > .match-container {
    width: min(420px, calc(100vw - 20px)) !important;
  }

  .sb-header {
    grid-template-columns: 98px auto minmax(0, 1fr) auto max-content 52px;
    grid-template-areas: "start admin category ended time stats";
    gap: 6px;
    min-height: 46px;
    padding: 0;
    border-radius: 18px 18px 13px 13px;
    overflow: hidden;
  }

  .sb-court-pill {
    width: 98px;
    min-width: 98px;
    height: 46px;
    min-height: 46px;
    padding: 0 6px 0 8px;
    gap: 5px;
    border-radius: 18px 18px 13px 13px;
  }

  .sb-stats-pill,
  .sb-stats-pill--disabled {
    grid-area: stats;
    justify-self: end;
    align-self: center;
    width: 52px;
    height: 46px;
    min-height: 46px;
    border-radius: 18px 18px 13px 13px;
  }

  .sb-court-text {
    font-size: 12px;
    font-weight: 700;
  }

  .sb-cam-dot,
  .happycam-round-btn,
  .sb-edit-dot {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .sb-cam-icon {
    width: 8px;
    height: 6px;
  }

  .sb-cam-emoji {
    font-size: 10px;
  }

  .sb-edit-icon {
    width: 6px;
    height: 6px;
  }

  .sb-category {
    font-size: 12px;
    grid-area: category;
    font-weight: 700;
    transform: translateY(calc(var(--hs-header-content-lift) * -1));
  }

  .sb-admin-link {
    grid-area: admin;
    justify-self: start;
    align-self: center;
  }

  .sb-ended-chip {
    grid-area: ended;
    min-height: 19px;
    padding: 0 5px;
    font-size: 9px;
  }

  .sb-time {
    grid-area: time;
    justify-self: end;
    font-size: 11px;
    font-weight: 700;
  }

  .sb-body {
    margin-top: -19px;
    padding: 6px 8px 8px;
    border-radius: 18px;
  }

  .player-name {
    font-size: 13px;
  }

  .player-club {
    font-size: 9px;
  }

  .set-score,
  .PtsBox {
    border-radius: 11px;
  }

  .set-score.set-encours {
    border-width: 1px;
  }

  .PtsBox {
    border-width: 1px;
  }

  .set-score,
  .Pts {
    font-size: 16px;
  }

  .player-row {
    grid-template-columns: 13px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 2px 0;
  }

  .sb-divider {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 8px;
  }

  .player-scores {
    justify-content: end;
    grid-auto-columns: minmax(0, var(--hs-score-size));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .player-scores::-webkit-scrollbar {
    display: none;
  }

  .court-admin-btn,
  .court-admin-btn .sb-court-text {
    transform: translateY(calc((var(--hs-header-content-lift) * -1) + 4px));
  }
}

.ended-match{
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 12px; 
  font-weight: bold;
  margin: 10px;
}

.ended-match p {
  margin: 0;
  padding: 8px;
  background-color: var(--hs-primary);
  color: var(--hs-secondary);
  border-radius: 10px;
}
