:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --bg: #07110d;
  --panel: rgba(6, 20, 16, .82);
  --line: rgba(255, 255, 255, .22);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, .72);
  --pitch: #176b3a;
  --pitch-dark: #08291c;
  --fifa-blue: #005a93;
  --gold: #d5b15b;
  --red: #e61d25;
  --charcoal: #14201d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .68)),
    linear-gradient(135deg, #07110d 0%, #0e3423 48%, #081a2b 100%);
}

.broadcast-page {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.broadcast-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-size: clamp(38px, 6vw, 84px);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.broadcast-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.broadcast-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.control-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.city-chip {
  font: inherit;
}

.flag-wrap,
.city-flag-wrap {
  display: inline-flex;
  gap: 4px;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
}

.city-chip-flag {
  width: 44px;
  height: 30px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 5px;
  background: rgba(255, 255, 255, .92);
}

.city-chip-code {
  display: grid;
  place-items: center;
  color: #071018;
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.mock-topic-badge {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(213, 177, 91, .86);
  border-radius: 999px;
  color: #07110d;
  background: var(--gold);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.city-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 0 8px;
  scrollbar-color: rgba(213, 177, 91, .62) rgba(255, 255, 255, .08);
}

.city-chip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px minmax(92px, auto) auto;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .075);
  cursor: grab;
}

.city-chip:active {
  cursor: grabbing;
}

.city-chip.is-selected {
  border-color: rgba(213, 177, 91, .72);
  background: rgba(213, 177, 91, .11);
}

.city-chip span {
  overflow: hidden;
  max-width: 170px;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-chip b {
  padding: 3px 6px;
  border: 1px solid rgba(213, 177, 91, .42);
  border-radius: 999px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.broadcast-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .58fr) minmax(440px, 1.52fr) minmax(190px, .58fr);
  gap: 18px;
  min-height: min(760px, calc(100dvh - 172px));
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 19, 16, .9), rgba(23, 107, 58, .48), rgba(5, 19, 16, .9)),
    repeating-linear-gradient(90deg, rgba(28, 122, 68, .5) 0 8%, rgba(14, 82, 48, .5) 8% 16%);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .52);
}

.stadium-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, .36), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(213, 177, 91, .2), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .5));
  pointer-events: none;
}

.pitch-lines {
  position: absolute;
  inset: 12% 10%;
  border: 2px solid rgba(255, 255, 255, .3);
  pointer-events: none;
}

.pitch-lines::before,
.pitch-lines::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pitch-lines::before {
  inset: 0 50% 0 auto;
  width: 2px;
  background: rgba(255, 255, 255, .28);
}

.pitch-lines::after {
  width: 150px;
  height: 150px;
  left: calc(50% - 75px);
  top: calc(50% - 75px);
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
}

.city-panel,
.stats-overlay {
  position: relative;
  z-index: 1;
}

.city-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 500px;
  padding: 16px;
  border: 3px solid var(--team-color, var(--fifa-blue));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 18px 60px rgba(0, 0, 0, .36);
}

.city-panel.is-drag-over {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(213, 177, 91, .38), 0 18px 60px rgba(0, 0, 0, .36);
}

.city-panel.is-active-select {
  box-shadow: inset 0 0 0 2px rgba(213, 177, 91, .34), 0 18px 60px rgba(0, 0, 0, .36);
}

.away-panel {
  text-align: left;
}

.away-panel > * {
  width: auto;
  max-width: none;
  justify-self: stretch;
}

.city-code {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  color: #071018;
  background: var(--team-color, var(--fifa-blue));
  font-size: 20px;
  font-weight: 950;
}

.city-panel h2 {
  margin: 16px 0 10px;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(27px, 3vw, 45px);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.city-panel small,
.mini-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.city-flag {
  width: min(100%, 180px);
  height: 96px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
}

.city-flag-wrap {
  width: min(100%, 202px);
}

.city-flag-wrap .city-flag {
  flex: 0 1 180px;
}

.city-mock-badge {
  margin-top: -3px;
}

.away-panel .city-flag {
  display: block;
  justify-self: start;
  margin-left: 0;
}

.mayor-strip {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(100%, 260px);
  margin-top: 14px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  text-align: left;
}

.away-panel .mayor-strip {
  justify-self: start;
}

.mayor-headshot {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  image-rendering: auto;
}

.mayor-strip span,
.mayor-strip small {
  display: block;
  color: rgba(248, 250, 252, .62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mayor-strip strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.12;
  text-overflow: ellipsis;
}

.mayor-strip small {
  margin-top: 2px;
  letter-spacing: .04em;
}

.topic-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.away-panel .topic-list {
  width: calc(100% - 24px);
  justify-self: start;
}

.topic-pill {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
}

.away-panel .topic-pill {
  padding-right: 12px;
}

.topic-pill i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: var(--topic-color, var(--gold));
  font-style: normal;
  overflow: hidden;
}

.topic-pill img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topic-pill svg {
  width: 74%;
  height: 74%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.topic-pill > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.topic-pill strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: normal;
}

.topic-pill small {
  display: block;
  color: rgba(248, 250, 252, .68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stats-overlay {
  align-self: center;
  padding: clamp(14px, 2vw, 22px);
  border: 2px solid rgba(213, 177, 91, .72);
  border-radius: 8px;
  background: rgba(4, 12, 21, .76);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 44px rgba(213, 177, 91, .14);
}

.radar-comparison {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(213, 177, 91, .35);
}

.radar-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.radar-heading small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
}

.attention-rose-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.attention-rose-pair figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.attention-rose-glyph {
  display: block;
  width: 100%;
  max-width: 188px;
  max-height: 188px;
  margin: 0 auto;
  overflow: visible;
}

.rose-label {
  fill: rgba(248, 250, 252, .82);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.attention-rose-pair figcaption {
  margin-top: -2px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rose-vs {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #07111f;
  background: var(--gold);
  font-size: 9px;
  font-weight: 950;
}

.rose-topic-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 9px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.rose-topic-key span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rose-topic-key i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--radar-color);
}

.stat-board {
  display: grid;
  gap: 7px;
}

.stat-row {
  display: grid;
  grid-template-columns: minmax(118px, .9fr) minmax(180px, 1fr) minmax(118px, .9fr);
  gap: 12px;
  align-items: center;
  min-height: 34px;
}

.stat-value {
  min-width: 0;
  color: #f8fafc;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 850;
  line-height: 1;
  text-shadow: none;
}

.stat-value.away {
  color: #f8fafc;
  text-align: right;
  text-shadow: none;
}

.stat-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .04em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  color: rgba(248, 250, 252, .62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.stat-notes span:last-child {
  text-align: right;
}

.stat-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
}

.stat-section::before {
  content: attr(data-label);
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(213, 177, 91, .48);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: rgba(213, 177, 91, .08);
}

.stat-section::after {
  content: "";
  height: 1px;
  background: rgba(213, 177, 91, .42);
}

.stat-section:first-child {
  margin-top: 0;
}

.stat-row-issue {
  align-items: start;
  min-height: 54px;
  padding-bottom: 4px;
}

.stat-row-issue .stat-value {
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.08;
}

.stat-topic-value {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.stat-value.away .stat-topic-value {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.stat-value.away .stat-topic-value i {
  order: 2;
}

.stat-topic-value i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: var(--topic-color, var(--gold));
  font-style: normal;
  overflow: hidden;
}

.stat-topic-value img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stat-topic-value svg {
  width: 74%;
  height: 74%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.stat-topic-value span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.stat-row-issue .stat-name {
  color: var(--gold);
  font-size: 15px;
  line-height: 1.15;
  white-space: normal;
}

.advantage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.advantage i {
  display: block;
  height: 100%;
}

.advantage i:first-child {
  justify-self: end;
  background: var(--fifa-blue);
}

.advantage i:last-child {
  justify-self: start;
  background: var(--red);
}

.status-message {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .3);
  color: var(--muted);
}

@media (max-width: 980px) {
  .broadcast-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .city-panel {
    min-height: auto;
  }

  .away-panel {
    padding: 16px;
    text-align: left;
  }

  .away-panel > * {
    width: auto;
    justify-self: stretch;
    margin-right: 0;
  }

  .away-panel .topic-list {
    width: 100%;
  }

  .away-panel h2 {
    font-size: clamp(27px, 3vw, 45px);
  }

  .away-panel .city-flag {
    justify-self: start;
    margin-right: 0;
  }
}

@media (max-width: 680px) {
  .broadcast-page {
    width: min(100% - 16px, 620px);
    padding: 10px 0 22px;
  }

  .broadcast-header {
    grid-template-columns: 1fr;
    display: grid;
    gap: 12px;
    margin-bottom: 10px;
  }

  .eyebrow {
    font-size: 10px;
  }

  h1 {
    font-size: clamp(34px, 13vw, 58px);
    line-height: .92;
  }

  .broadcast-links {
    justify-content: flex-start;
  }

  .broadcast-links a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .control-strip {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -8px 10px;
    padding: 8px;
    background: rgba(7, 17, 13, .94);
    backdrop-filter: blur(14px);
  }

  .city-rail {
    gap: 8px;
    padding-bottom: 4px;
  }

  .city-chip {
    grid-template-columns: 38px minmax(82px, 126px);
    min-height: 42px;
    padding: 6px 8px;
  }

  .city-chip-flag {
    width: 38px;
    height: 26px;
  }

  .city-chip span {
    max-width: 126px;
    font-size: 12px;
  }

  .city-chip b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .broadcast-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .home-panel {
    order: 1;
  }

  .away-panel {
    order: 2;
  }

  .stats-overlay {
    order: 3;
    grid-column: 1 / -1;
  }

  .pitch-lines {
    inset: 7% 6%;
  }

  .city-panel {
    gap: 12px;
    padding: 12px;
    border-width: 2px;
  }

  .city-panel h2 {
    margin: 8px 0 5px;
    font-size: clamp(18px, 5.8vw, 25px);
  }

  .city-panel small,
  .mini-label {
    font-size: 9px;
  }

  .city-flag {
    width: min(100%, 112px);
    height: 58px;
    padding: 6px;
  }

  .mayor-strip {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 7px;
  }

  .mayor-headshot {
    width: 36px;
    height: 36px;
    border-radius: 7px;
  }

  .mayor-strip span,
  .mayor-strip small {
    font-size: 8px;
  }

  .mayor-strip strong {
    font-size: 12px;
  }

  .topic-list {
    gap: 8px;
    margin-top: 4px;
  }

  .topic-pill {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 50px;
    padding: 8px;
  }

  .away-panel .topic-pill {
    padding-right: 8px;
  }

  .topic-pill i {
    width: 32px;
    height: 32px;
  }

  .topic-pill strong {
    font-size: 12px;
  }

  .topic-pill small {
    font-size: 8px;
  }

  .topic-list .topic-pill:nth-of-type(n + 4) {
    display: none;
  }

  .stats-overlay {
    padding: 12px;
  }

  .stat-board {
    gap: 9px;
  }

  .stat-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 10px;
    min-height: auto;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .stat-name {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 13px;
    text-align: left;
    white-space: normal;
  }

  .stat-value {
    grid-column: 1;
    grid-row: 2;
    font-size: 22px;
  }

  .stat-value.away {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .stat-notes {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 10px;
    font-size: 9px;
  }

  .advantage {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .stat-section {
    margin-top: 12px;
    font-size: 10px;
  }

  .stat-section::before {
    min-height: 24px;
    padding: 0 8px;
  }

  .stat-row-issue {
    min-height: auto;
    align-items: center;
  }

  .stat-row-issue .stat-value {
    font-size: 17px;
  }

  .stat-row-issue .stat-name {
    font-size: 13px;
  }

  .stat-topic-value,
  .stat-value.away .stat-topic-value {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .stat-value.away .stat-topic-value {
    justify-items: end;
  }

  .stat-value.away .stat-topic-value i {
    order: 0;
  }

  .stat-topic-value i {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 680px) {
  .radar-chart { max-height: 220px; }
  .radar-heading { font-size: 10px; }
}
