/* HFA broadcast match sheet. Scoped to the fixed capture stage. */
.capture-broadcast,
.capture-export-host > .capture-broadcast {
  --capture-navy: #06182f;
  --capture-blue: #0759d9;
  --capture-electric: #13a8ff;
  --capture-ink: #071c48;
  --capture-muted: #66748d;
  --capture-line: #d9e3f1;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 198px 64px minmax(0, 1fr) 18px;
  width: 1280px !important;
  height: 720px !important;
  min-width: 1280px;
  min-height: 720px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #061b38;
  color: var(--capture-ink);
  font-family: Inter, "Arial Narrow", Arial, sans-serif;
}

.capture-export-host > .capture-broadcast {
  border-radius: 0;
  box-shadow: none;
}

.capture-broadcast *,
.capture-broadcast *::before,
.capture-broadcast *::after {
  box-sizing: border-box;
}

.capture-broadcast .capture-hero {
  position: relative;
  height: 198px;
  padding: 10px 24px 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 115%, rgba(0, 144, 255, .52), transparent 41%),
    linear-gradient(112deg, #041329 0%, #082d61 51%, #06172f 100%);
  color: #fff;
}

.capture-broadcast .capture-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20, 129, 255, .32) 1px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: .45;
}

.capture-broadcast .capture-hero::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #008cff 35%, #55c9ff 50%, #008cff 65%, transparent);
  box-shadow: 0 0 12px rgba(0, 149, 255, .8);
}

.capture-broadcast .capture-brand-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 270px;
  align-items: center;
  height: 30px;
  gap: 14px;
}

.capture-broadcast .capture-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #d9e8fb;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: .12em;
}

.capture-broadcast .capture-brand > b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 25px;
  border: 2px solid #dce9fa;
  border-radius: 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .03em;
  line-height: 1;
}

.capture-broadcast .capture-context {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: #dcecff;
  font-size: 14px;
  letter-spacing: .075em;
  white-space: nowrap;
}

.capture-broadcast .capture-context strong,
.capture-broadcast .capture-context span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.capture-broadcast .capture-context strong {
  color: #fff;
  font-weight: 950;
}

.capture-broadcast .capture-context span::before {
  content: "•";
  margin-right: 8px;
  color: #39b7ff;
}

.capture-broadcast .capture-brand-row > .badge {
  justify-self: end;
  padding: 6px 12px;
  border: 1px solid #00e998;
  border-radius: 999px;
  background: rgba(0, 130, 89, .25);
  color: #edfff8;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 11px rgba(0, 233, 152, .17);
}

.capture-broadcast .capture-scoreboard {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 1120px;
  height: 124px;
  margin: 1px auto 0;
  gap: 22px;
}

.capture-broadcast .capture-team {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-align: left !important;
}

.capture-broadcast .capture-team-away {
  grid-template-columns: minmax(0, 1fr) 104px !important;
  text-align: right !important;
}

.capture-broadcast .capture-team > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.capture-broadcast .capture-team small {
  color: #24aaff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}

.capture-broadcast .capture-team strong {
  display: -webkit-box;
  max-width: 315px;
  overflow: hidden;
  color: #fff;
  font-size: 27px;
  font-weight: 950;
  line-height: 1.02;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.capture-broadcast .capture-team-away strong {
  justify-self: end;
}

.capture-broadcast .capture-logo-box,
.capture-broadcast .capture-scoreboard .capture-logo-box .team-logo {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
}

.capture-broadcast .capture-scoreboard .capture-logo-box .team-logo {
  padding: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 20px;
  background: #f9fbff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
}

.capture-broadcast .capture-logo-box .team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.capture-broadcast .capture-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.capture-broadcast .capture-score span {
  display: grid;
  place-items: center;
  min-width: 98px;
  height: 112px;
  border: 0;
  border-radius: 10px;
  background: rgba(1, 13, 34, .38);
  color: #fff;
  font-size: 88px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 3px 11px rgba(0, 96, 255, .6);
}

.capture-broadcast .capture-score i {
  color: #fff;
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
}

.capture-broadcast .capture-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 24px;
  height: 26px;
  color: #d7e7f8;
  font-size: 10px;
  font-weight: 750;
}

.capture-broadcast .capture-meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 24px -2px 0;
  background: rgba(255, 255, 255, .34);
}

.capture-broadcast .capture-meta b {
  color: #fff;
}

.capture-broadcast .capture-summary-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 64px;
  margin: 0 16px;
  overflow: hidden;
  border: 4px solid #e4ebf5;
  border-radius: 15px;
  background: #fbfdff;
  box-shadow: 0 8px 22px rgba(0, 28, 76, .2);
}

.capture-broadcast .capture-summary-grid > div {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 9px;
  height: 56px;
  padding: 7px 14px;
  border-left: 1px solid #dbe4f0;
  text-align: left;
}

.capture-broadcast .capture-summary-grid > div:first-child {
  border-left: 0;
}

.capture-broadcast .capture-summary-grid i {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #cfe0f7;
  border-radius: 50%;
  background: #f2f7ff;
  color: #0757c9;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.capture-broadcast .capture-stat-yellow i {
  color: #f3b400;
}

.capture-broadcast .capture-stat-red i {
  color: #e3092e;
}

.capture-broadcast .capture-summary-grid span {
  align-self: end;
  color: #1b2b4a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: none;
}

.capture-broadcast .capture-summary-grid strong {
  align-self: start;
  color: #071b50;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.capture-broadcast .capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 21fr) minmax(0, 27fr);
  gap: 10px;
  min-height: 0;
  padding: 9px 16px 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #061d42 0%, #082b61 100%);
}

.capture-broadcast .capture-panel,
.capture-broadcast .capture-mvp {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 4px solid #e5ebf4;
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 7px 18px rgba(0, 10, 33, .2);
}

.capture-broadcast .capture-panel {
  padding: 0;
}

.capture-broadcast .capture-panel > header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid var(--capture-line);
  background: linear-gradient(90deg, #f9fbff, #eef5ff);
}

.capture-broadcast .capture-panel > header h2 {
  margin: 0;
  color: #082560;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .015em;
}

.capture-broadcast .capture-panel > header span {
  color: #495b78;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.capture-broadcast .capture-incidents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 44px repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 0;
}

.capture-broadcast .capture-incidents > header {
  grid-column: 1 / -1;
  border-color: #174a86;
  background: linear-gradient(100deg, #062552, #081a39);
}

.capture-broadcast .capture-incidents > header h2 {
  padding-right: 14px;
  border-right: 1px solid #aec5e5;
  color: #fff;
}

.capture-broadcast .capture-incidents > header span {
  color: #dbe9fa;
}

.capture-broadcast .capture-incident-block {
  min-height: 0;
  padding: 10px 12px 8px;
  overflow: hidden;
  border: 0;
}

.capture-broadcast .capture-incident-block:nth-of-type(even) {
  border-left: 1px solid var(--capture-line);
}

.capture-broadcast .capture-incident-block:nth-of-type(n + 4) {
  border-top: 1px solid var(--capture-line);
}

.capture-broadcast .incident-block-head {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  margin: 0 0 7px;
  color: #0b3782;
}

.capture-broadcast .incident-block-head i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #cfe0f6;
  border-radius: 50%;
  background: #f2f7ff;
  font-size: 11px;
  font-style: normal;
}

.capture-broadcast .incident-block-head span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .025em;
}

.capture-broadcast .incident-block-head b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0862d7;
  font-size: 9px;
}

.capture-broadcast .capture-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.capture-broadcast .capture-team-block {
  min-width: 0;
}

.capture-broadcast .capture-team-block + .capture-team-block {
  padding-left: 10px;
  border-left: 1px solid var(--capture-line);
}

.capture-broadcast .capture-team-heading {
  display: block;
  min-width: 0;
  padding: 0 0 5px;
  overflow: hidden;
  border: 0;
}

.capture-broadcast .capture-team-heading strong {
  display: -webkit-box;
  min-height: 20px;
  overflow: hidden;
  color: #0753c8;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.capture-broadcast .capture-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capture-broadcast .capture-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 13px;
  color: #1a2a4b;
  font-size: 9px;
  line-height: 1.15;
}

.capture-broadcast .capture-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-broadcast .capture-list li span::before {
  content: "•";
  margin-right: 4px;
  color: #087dff;
}

.capture-broadcast .capture-list li b {
  color: #08265f;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.capture-broadcast .capture-empty,
.capture-broadcast .capture-more {
  margin: 0;
  color: #7b879b !important;
  font-size: 8px !important;
  font-weight: 750;
}

.capture-broadcast .capture-mvp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 10px;
  border-color: #d4e0f2;
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 148, 255, .29), transparent 37%),
    linear-gradient(160deg, #092c61 0%, #04162e 73%, #08387b 100%);
  color: #fff;
  text-align: center;
}

.capture-broadcast .capture-mvp::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #168fff, transparent);
  box-shadow: 0 0 11px #168fff;
}

.capture-broadcast .capture-mvp > span {
  color: #ffe061;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .045em;
  white-space: nowrap;
}

.capture-broadcast .capture-mvp > strong {
  display: -webkit-box;
  width: 100%;
  min-height: 38px;
  margin-top: 13px;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.capture-broadcast .capture-mvp > strong.capture-mvp-name-long {
  font-size: 15px;
  letter-spacing: -.015em;
}

.capture-broadcast .capture-mvp > small {
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #25b5ff;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-broadcast .capture-mvp-avatar {
  display: grid;
  place-items: center;
  width: 154px;
  height: 174px;
  margin: 14px auto 9px;
  padding: 9px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 17px;
  background: linear-gradient(145deg, #0d6cce, #062148);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
}

/* The profile photo is shown whole: contain never crops or distorts it, and
   the frame simply letterboxes whatever the player uploaded. */
.capture-broadcast .capture-mvp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  image-rendering: pixelated;
}

/* Photo and initials are mutually exclusive. Because contain letterboxes, an
   always-on fallback would show through the empty bands, so it only renders
   when the frame is marked empty (no photo, or the image failed to load). */
.capture-broadcast .capture-mvp-avatar .capture-mvp-avatar-fallback {
  display: none;
}

.capture-broadcast .capture-mvp-avatar.is-empty .capture-mvp-avatar-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 46px;
  font-weight: 950;
  letter-spacing: .02em;
}

.capture-broadcast .capture-mvp > b {
  position: relative;
  z-index: 2;
  margin-top: auto;
  color: #fff;
  font-size: 54px;
  font-weight: 950;
  line-height: .9;
  text-shadow: 0 0 16px rgba(30, 144, 255, .65);
}

.capture-broadcast .capture-mvp > b small {
  display: block;
  margin-top: 6px;
  color: #23b9ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .02em;
}

.capture-broadcast .capture-mvp-empty {
  justify-content: flex-start;
}

.capture-broadcast .capture-mvp-empty .capture-mvp-placeholder {
  display: grid;
  place-items: center;
  width: 150px;
  height: 174px;
  margin: 38px auto 20px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(10, 98, 190, .2);
  color: #60c5ff;
  font-size: 65px;
}

.capture-broadcast .capture-mvp-empty > strong {
  min-height: 0;
  color: #d9e9f9;
  font-size: 14px;
}

.capture-broadcast .capture-ratings > header {
  gap: 8px;
}

.capture-broadcast .capture-ratings > header > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #0757c9;
  color: #fff;
  font-size: 13px;
}

.capture-broadcast .capture-ratings > header h2 {
  font-size: 13px;
}

.capture-broadcast .capture-rating-teams {
  display: grid;
  gap: 8px;
  padding: 8px 9px;
}

.capture-broadcast .capture-rating-team {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e3f1;
  border-radius: 10px;
  background: #fff;
}

.capture-broadcast .capture-rating-team > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 31px;
  padding: 4px 7px;
  border-bottom: 1px solid #dce5f0;
  background: #f7faff;
}

.capture-broadcast .capture-rating-team > header > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.capture-broadcast .capture-rating-team > header .team-logo {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  border-radius: 5px;
}

.capture-broadcast .capture-rating-team > header strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0750bd;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.capture-broadcast .capture-rating-team > header b {
  color: #8894a7;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.capture-broadcast .capture-rating-team ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 2px 6px 3px;
  list-style: none;
}

.capture-broadcast .capture-rating-team li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 18px;
  padding: 1px 3px;
  border-top: 1px solid #edf1f6;
  color: #19294a;
  font-size: 9px;
}

.capture-broadcast .capture-rating-team li:first-child {
  border-top: 0;
}

.capture-broadcast .capture-rating-player {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

.capture-broadcast .capture-rating-player .player-avatar {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.capture-broadcast .capture-rating-player > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.capture-broadcast .capture-rating-team li > b {
  color: #073c97;
  font-size: 10px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.capture-broadcast .capture-rating-best {
  background: #eef7ff;
}

.capture-broadcast .capture-top-badge {
  padding: 1px 3px;
  border-radius: 5px;
  background: #e6ffcb;
  color: #408300;
  font-size: 7px;
}

.capture-broadcast .capture-rating-more {
  display: block !important;
  min-height: 14px !important;
  color: #78869c !important;
  font-size: 7px !important;
  font-weight: 800;
}

.capture-broadcast .capture-ratings-empty {
  display: flex;
  height: calc(100% - 44px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px;
  color: #7a879b;
  text-align: center;
}

.capture-broadcast .capture-ratings-empty span {
  color: #0c72e9;
  font-size: 42px;
}

.capture-broadcast .capture-ratings-empty strong {
  font-size: 12px;
}

.capture-broadcast .capture-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18px;
  padding: 0 18px;
  border: 0;
  background: #04152d;
  color: #6fa9e3;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .14em;
}

.capture-broadcast .capture-footer b {
  color: #14a7ff;
}

.capture-broadcast.capture-density-medium .capture-rating-team li,
.capture-broadcast.capture-density-high .capture-rating-team li {
  min-height: 19px;
  font-size: 10.5px;
}

.capture-broadcast.capture-density-medium .capture-rating-player .player-avatar,
.capture-broadcast.capture-density-high .capture-rating-player .player-avatar {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.capture-broadcast.capture-default-sheet {
  grid-template-rows: 198px 64px minmax(0, 1fr) 18px;
}

.capture-broadcast .capture-default-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
}

.capture-broadcast .capture-default-panel > span {
  color: #0a5dcc;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
}

.capture-broadcast .capture-default-panel strong {
  color: #173052;
  font-size: 15px;
}

.capture-broadcast .capture-default-panel small {
  max-width: 80%;
  color: #768398;
  font-size: 10px;
  line-height: 1.4;
}

.capture-broadcast .match-default-badge {
  border-color: #ffbd2e;
  background: rgba(179, 112, 0, .29);
  color: #fff4cf;
}

/* V2 readability: tuned against the 1280×720 reference, not viewport units. */
.capture-broadcast .capture-summary-grid span { font-size: 10px; }
.capture-broadcast .capture-team-heading strong { font-size: 10.5px; }
.capture-broadcast .capture-list li { font-size: 11.5px; }
.capture-broadcast .capture-list li b { font-size: 11px; }
.capture-broadcast .capture-empty,
.capture-broadcast .capture-more { font-size: 9px !important; }
.capture-broadcast .capture-mvp > span { font-size: 10px; }
.capture-broadcast .capture-mvp > strong { font-size: 19px; }
.capture-broadcast .capture-mvp > b small { font-size: 11px; }
.capture-broadcast .capture-ratings > header h2 { font-size: 14px; }
.capture-broadcast .capture-rating-team > header strong { font-size: 11px; }
.capture-broadcast .capture-rating-team li { min-height: 21px; font-size: 11.5px; }
.capture-broadcast .capture-rating-team li > b { font-size: 13px; }

@media (max-width: 760px) {
  .match-capture-overlay {
    padding-inline: 6px;
  }

  .capture-broadcast {
    width: 1280px !important;
    height: 720px !important;
    min-width: 1280px;
    min-height: 720px;
  }
}
