.p4k-match-report {
  --p4k-home: #ff4d42;
  --p4k-home-soft: rgba(255, 77, 66, 0.18);
  --p4k-away: #ffc247;
  --p4k-away-soft: rgba(255, 194, 71, 0.18);
  --p4k-panel: #121416;
  --p4k-panel-strong: #17191c;
  --p4k-line: rgba(255, 255, 255, 0.1);
  --p4k-copy: #f7f7f8;
  --p4k-muted: #a4a7ad;
  display: block;
  color: var(--p4k-copy);
}

.p4k-match-report > h2 {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.p4k-match-report > h3 {
  margin: 44px 0 16px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.p4k-match-report > p {
  color: #c9cbd0;
}

.p4k-final-score {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 0 0 16px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0, var(--p4k-home-soft), transparent 42%),
    radial-gradient(circle at 90% 100%, var(--p4k-away-soft), transparent 42%),
    linear-gradient(145deg, #17191c, #0f1012);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.p4k-final-score::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

.p4k-final-score span,
.p4k-final-score strong {
  position: relative;
  z-index: 1;
}

.p4k-final-score span {
  min-width: 0;
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 800;
  line-height: 1.15;
}

.p4k-final-score span:last-child {
  text-align: right;
}

.p4k-final-score strong {
  display: inline-flex;
  min-width: 142px;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.p4k-score-period {
  display: inline-flex;
  margin: 0 8px 8px 0 !important;
  padding: 8px 12px;
  border: 1px solid var(--p4k-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d8d9dd !important;
  font-size: 13px;
  font-weight: 700;
}

.p4k-events {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p4k-events li {
  position: relative;
  min-height: 54px;
  padding: 14px 16px 14px 74px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  color: #d8dade;
  font-size: 14px;
  line-height: 1.55;
}

.p4k-events time {
  position: absolute;
  top: 11px;
  left: 12px;
  display: inline-flex;
  min-width: 48px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 194, 71, 0.28);
  border-radius: 10px;
  background: rgba(255, 194, 71, 0.1);
  color: var(--p4k-away);
  font-size: 12px;
  font-weight: 900;
}

.p4k-lineups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.p4k-lineups > section {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--p4k-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.p4k-lineups > section:first-child {
  box-shadow: inset 3px 0 var(--p4k-home);
}

.p4k-lineups > section:last-child {
  box-shadow: inset -3px 0 var(--p4k-away);
}

.p4k-lineups h4 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.3;
}

.p4k-lineups p {
  margin: 0 0 12px !important;
  color: #bfc2c8 !important;
  font-size: 13px;
  line-height: 1.65;
}

.p4k-lineups p:last-child {
  margin-bottom: 0 !important;
}

.p4k-stat-dashboard {
  position: relative;
  margin: 48px 0 8px;
  padding: clamp(20px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at -8% -10%, rgba(255, 77, 66, 0.2), transparent 36%),
    radial-gradient(circle at 108% 0, rgba(255, 194, 71, 0.16), transparent 36%),
    linear-gradient(155deg, #17191c 0%, #101113 54%, #0d0e10 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255,255,255,.04);
  isolation: isolate;
}

.p4k-stat-dashboard::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  content: "";
  pointer-events: none;
}

.p4k-stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.p4k-stat-header h3 {
  margin: 5px 0 7px;
  color: #fff;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.p4k-stat-header p {
  max-width: 560px;
  margin: 0 !important;
  color: var(--p4k-muted) !important;
  font-size: 13px;
  line-height: 1.55;
}

.p4k-stat-kicker {
  color: var(--p4k-away);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.p4k-stat-verified {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(72, 211, 138, 0.24);
  border-radius: 999px;
  background: rgba(72, 211, 138, 0.09);
  color: #78e4aa;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.p4k-stat-verified::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5cdf9a;
  box-shadow: 0 0 12px rgba(92, 223, 154, .55);
  content: "";
}

.p4k-stat-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 2px;
}

.p4k-stat-teams strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
}

.p4k-stat-teams strong:last-child {
  justify-content: flex-end;
  text-align: right;
}

.p4k-stat-teams i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--p4k-home);
  box-shadow: 0 0 15px var(--p4k-home-soft);
}

.p4k-stat-teams strong:last-child i {
  background: var(--p4k-away);
  box-shadow: 0 0 15px var(--p4k-away-soft);
}

.p4k-stat-teams > span {
  color: #74777e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p4k-stat-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.p4k-stat-insights article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.p4k-stat-insights article > span,
.p4k-stat-insights article > strong,
.p4k-stat-insights article > small {
  display: block;
}

.p4k-stat-insights article > span {
  margin-bottom: 7px;
  color: #7f838b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.p4k-stat-insights article > strong {
  margin-bottom: 5px;
  color: #f4f5f7;
  font-size: 13px;
  line-height: 1.35;
}

.p4k-stat-insights article > small {
  color: #9b9ea5;
  font-size: 11px;
  line-height: 1.45;
}

.p4k-stat-key-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 19px;
  background: rgba(0, 0, 0, 0.2);
  list-style: none;
}

.p4k-stat-key-list > li {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.p4k-stat-key-list > li:last-child {
  border-bottom: 0;
}

.p4k-stat-row-head {
  display: grid;
  grid-template-columns: minmax(52px, 76px) minmax(0, 1fr) minmax(52px, 76px);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.p4k-stat-row-head strong {
  color: #f4f5f6;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.p4k-stat-row-head strong:last-child {
  text-align: right;
}

.p4k-stat-row-head span {
  overflow: hidden;
  color: #b7bac0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
}

.p4k-stat-key-list > li[data-leading="home"] .p4k-stat-row-head strong:first-child {
  color: var(--p4k-home);
}

.p4k-stat-key-list > li[data-leading="away"] .p4k-stat-row-head strong:last-child {
  color: var(--p4k-away);
}

.p4k-stat-mirror {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.p4k-stat-mirror::after {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
  transform: translateX(-.5px);
}

.p4k-stat-track {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.p4k-stat-track-home {
  justify-content: flex-end;
}

.p4k-stat-track i {
  display: block;
  width: var(--p4k-value);
  height: 100%;
  border-radius: inherit;
  animation: p4k-stat-grow .8s cubic-bezier(.16, 1, .3, 1) both;
}

.p4k-stat-track-home i {
  background: linear-gradient(90deg, #d92828, var(--p4k-home));
  box-shadow: 0 0 14px var(--p4k-home-soft);
  transform-origin: right center;
}

.p4k-stat-track-away i {
  background: linear-gradient(90deg, var(--p4k-away), #e59624);
  box-shadow: 0 0 14px var(--p4k-away-soft);
  transform-origin: left center;
}

.p4k-stat-details {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.p4k-stat-details summary {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 48px 13px 16px;
  cursor: pointer;
  list-style: none;
}

.p4k-stat-details summary::-webkit-details-marker {
  display: none;
}

.p4k-stat-details summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--p4k-away);
  content: "+";
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-53%);
}

.p4k-stat-details[open] summary::after {
  content: "\2212";
}

.p4k-stat-details summary span {
  color: #f0f1f2;
  font-size: 13px;
  font-weight: 800;
}

.p4k-stat-details summary small {
  color: #888b92;
  font-size: 11px;
}

.p4k-stat-details summary:focus-visible {
  border-radius: 16px;
  outline: 3px solid rgba(255, 194, 71, .45);
  outline-offset: 3px;
}

.p4k-stat-table-wrap {
  overflow-x: auto;
  padding: 0 12px 12px;
}

.p4k-stat-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #d8dadd;
  font-size: 12px;
}

.p4k-stat-table caption {
  padding: 10px 4px;
  color: #92959c;
  font-size: 11px;
  text-align: left;
}

.p4k-stat-table th,
.p4k-stat-table td {
  padding: 10px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.p4k-stat-table thead th {
  color: #868a91;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.p4k-stat-table tbody th {
  color: #b8bbc1;
  font-weight: 600;
}

.p4k-stat-table tbody td:first-child {
  color: var(--p4k-home);
  font-weight: 800;
}

.p4k-stat-table tbody td:last-child {
  color: var(--p4k-away);
  font-weight: 800;
}

.p4k-data-sources {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}

.p4k-data-sources h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.p4k-data-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p4k-data-sources a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255, 194, 71, .22);
  border-radius: 999px;
  background: rgba(255, 194, 71, .07);
  color: var(--p4k-away);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.p4k-data-sources a:hover {
  border-color: rgba(255, 194, 71, .5);
  background: rgba(255, 194, 71, .12);
}

.p4k-data-source {
  margin-top: 10px !important;
  color: #777b82 !important;
  font-size: 11px;
}

@keyframes p4k-stat-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .p4k-lineups,
  .p4k-stat-insights {
    grid-template-columns: 1fr;
  }

  .p4k-stat-header {
    display: block;
  }

  .p4k-stat-verified {
    margin-top: 13px;
  }

  .p4k-stat-insights {
    gap: 8px;
  }

  .p4k-stat-insights article {
    padding: 12px 14px;
  }
}

@media (max-width: 520px) {
  .p4k-final-score {
    gap: 9px;
    padding: 18px 12px;
    border-radius: 19px;
  }

  .p4k-final-score span {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .p4k-final-score strong {
    min-width: 94px;
    min-height: 62px;
    padding: 7px 10px;
    border-radius: 16px;
    font-size: 32px;
  }

  .p4k-stat-dashboard {
    margin-top: 38px;
    padding: 18px 13px;
    border-radius: 21px;
  }

  .p4k-stat-teams {
    grid-template-columns: 1fr 1fr;
  }

  .p4k-stat-teams > span {
    display: none;
  }

  .p4k-stat-key-list > li {
    padding: 12px;
  }

  .p4k-stat-row-head {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 5px;
  }

  .p4k-stat-row-head strong {
    font-size: 16px;
  }

  .p4k-stat-row-head span {
    font-size: 11px;
  }

  .p4k-stat-details summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p4k-stat-track i {
    animation: none;
  }
}

/* Report V3: every verified data family receives a visual component. */
.p4k-match-report[data-ui-version="3"] {
  --p4k-green: #42d67d;
  --p4k-blue: #5aa7ff;
  --p4k-surface: rgba(255, 255, 255, .045);
  --p4k-surface-strong: rgba(255, 255, 255, .075);
  max-width: 1180px;
  margin-inline: auto;
}

.p4k-report-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.p4k-report-heading > span,
.p4k-match-story > header > span,
.p4k-events-visual > header > span,
.p4k-lineup-visual > header > span {
  display: block;
  margin-bottom: 7px;
  color: var(--p4k-away);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.p4k-report-heading h2,
.p4k-match-story h3,
.p4k-events-visual h3,
.p4k-lineup-visual h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.p4k-report-heading p,
.p4k-match-story > header p,
.p4k-events-visual > header p,
.p4k-lineup-visual > header p {
  max-width: 720px;
  margin: 9px 0 0 !important;
  color: #b6bac1 !important;
  font-size: 14px;
  line-height: 1.6;
}

.p4k-report-nav {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--p4k-line);
  border-radius: 16px;
  background: rgba(11, 12, 14, .86);
  scrollbar-width: thin;
}

.p4k-report-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #d9dbe0;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.p4k-report-nav a:hover,
.p4k-report-nav a:focus-visible {
  border-color: rgba(255, 194, 71, .35);
  background: rgba(255, 194, 71, .1);
  color: #fff;
  outline: none;
}

.p4k-score-dashboard {
  position: relative;
  margin-bottom: 18px;
  padding: clamp(18px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0 0, var(--p4k-home-soft), transparent 38%),
    radial-gradient(circle at 100% 100%, var(--p4k-away-soft), transparent 38%),
    linear-gradient(145deg, #191b1f, #0e0f11);
  box-shadow: 0 26px 72px rgba(0, 0, 0, .35);
}

.p4k-score-dashboard::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  pointer-events: none;
}

.p4k-score-dashboard > * {
  position: relative;
}

.p4k-score-dashboard > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.p4k-score-dashboard > header > span {
  color: #9da1a9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.p4k-score-dashboard > header > strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(72, 211, 138, .28);
  border-radius: 999px;
  background: rgba(72, 211, 138, .09);
  color: #7ae5ac;
  font-size: 12px;
}

.p4k-score-dashboard .p4k-final-score {
  margin-bottom: 18px;
  padding-inline: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.p4k-score-dashboard .p4k-final-score::before {
  display: none;
}

.p4k-score-dashboard .p4k-final-score strong b,
.p4k-score-dashboard .p4k-final-score strong i {
  font: inherit;
}

.p4k-score-dashboard .p4k-final-score strong i {
  margin-inline: 9px;
  color: #747982;
  font-style: normal;
}

.p4k-score-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 9px;
  margin-top: 4px;
}

.p4k-score-phases article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
}

.p4k-score-phases article > span,
.p4k-score-phases article > strong,
.p4k-score-phases article > small {
  display: block;
}

.p4k-score-phases article > span {
  color: var(--p4k-away);
  font-size: 11px;
  font-weight: 900;
}

.p4k-score-phases article > strong {
  margin: 4px 0;
  color: #fff;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.p4k-score-phases article > small {
  color: #aeb2b9;
  font-size: 12px;
  line-height: 1.35;
}

.p4k-match-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.p4k-match-meta > span {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 13px;
  background: var(--p4k-surface);
  color: #f0f1f3;
  font-size: 13px;
  line-height: 1.4;
}

.p4k-match-meta b {
  display: block;
  margin-bottom: 4px;
  color: #92969e;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p4k-match-story,
.p4k-events-visual,
.p4k-lineup-visual {
  margin-top: 34px;
  scroll-margin-top: 20px;
}

.p4k-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.p4k-story-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
}

.p4k-story-grid article.is-featured {
  border-color: rgba(255, 194, 71, .24);
  background:
    radial-gradient(circle at 0 0, rgba(255, 194, 71, .11), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
}

.p4k-story-grid article > span {
  display: block;
  margin-bottom: 9px;
  color: var(--p4k-away);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.p4k-story-grid article p {
  margin: 0 !important;
  color: #d5d7dc !important;
  font-size: 14px;
  line-height: 1.65;
}

.p4k-events-visual,
.p4k-lineup-visual {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: linear-gradient(150deg, #15171a, #0e0f11);
}

.p4k-event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.p4k-event-summary article {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: var(--p4k-surface);
}

.p4k-event-summary b {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 194, 71, .12);
  color: var(--p4k-away);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.p4k-event-summary span {
  color: #d9dbe0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.p4k-event-timeline-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 18px;
  background: rgba(0, 0, 0, .22);
  scrollbar-color: rgba(255, 194, 71, .35) rgba(255, 255, 255, .04);
}

.p4k-event-timeline {
  position: relative;
  min-width: 720px;
  height: 174px;
  margin-inline: 24px;
}

.p4k-timeline-axis {
  position: absolute;
  top: 86px;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--p4k-home), #777b82 50%, var(--p4k-away));
  opacity: .72;
}

.p4k-timeline-tick,
.p4k-timeline-marker {
  position: absolute;
  left: var(--p4k-pos);
  transform: translateX(-50%);
}

.p4k-timeline-tick {
  top: 77px;
  color: #8f939b;
}

.p4k-timeline-tick i {
  display: block;
  width: 1px;
  height: 20px;
  margin: 0 auto 5px;
  background: rgba(255, 255, 255, .28);
}

.p4k-timeline-tick b {
  display: block;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.p4k-timeline-marker {
  z-index: 2;
  top: calc(26px + (var(--p4k-lane, 0) * 15px));
}

.p4k-timeline-marker[data-side="away"] {
  top: calc(112px + (var(--p4k-lane, 0) * 13px));
}

.p4k-timeline-marker[data-side="neutral"] {
  top: 68px;
}

.p4k-timeline-marker b {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d0f11;
  border-radius: 50%;
  background: var(--p4k-home);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 10px;
}

.p4k-timeline-marker[data-side="away"] b {
  background: var(--p4k-away);
  color: #1a1306;
}

.p4k-timeline-marker[data-kind="var"] b {
  background: var(--p4k-blue);
  color: #071526;
}

.p4k-timeline-marker[data-kind="card"] b {
  background: #f1d83c;
  color: #18170c;
}

.p4k-timeline-marker[data-kind="substitution"] b {
  background: #818690;
  color: #fff;
}

.p4k-event-feed {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p4k-event-feed > li {
  display: grid;
  grid-template-columns: 58px 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--p4k-home);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.p4k-event-feed > li[data-side="away"] {
  border-right: 3px solid var(--p4k-away);
  border-left-color: rgba(255, 255, 255, .08);
}

.p4k-event-feed time {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.p4k-event-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 194, 71, .12);
  color: var(--p4k-away);
  font-size: 12px;
  font-weight: 900;
}

.p4k-event-copy {
  min-width: 0;
}

.p4k-event-copy > span,
.p4k-event-copy > strong,
.p4k-event-copy > small {
  display: block;
}

.p4k-event-copy > span {
  margin-bottom: 2px;
  color: #92969e;
  font-size: 11px;
  font-weight: 800;
}

.p4k-event-copy > strong {
  color: #f5f6f7;
  font-size: 14px;
  line-height: 1.35;
}

.p4k-event-copy > small {
  margin-top: 5px;
  color: #aeb2b9;
  font-size: 12px;
  line-height: 1.5;
}

.p4k-event-change {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.p4k-event-change span {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #c7cad0;
  font-size: 11px;
  font-weight: 700;
}

.p4k-event-change .is-in {
  background: rgba(66, 214, 125, .1);
  color: #78e5a9;
}

.p4k-event-change .is-out {
  background: rgba(255, 77, 66, .1);
  color: #ff8179;
}

.p4k-lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.p4k-lineup-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: rgba(0, 0, 0, .2);
}

.p4k-lineup-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.p4k-lineup-card > header span {
  color: #8f939b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p4k-lineup-card h4 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 19px;
}

.p4k-formation-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(255, 194, 71, .26);
  border-radius: 10px;
  background: rgba(255, 194, 71, .08);
  color: var(--p4k-away);
  font-size: 11px;
}

.p4k-lineup-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.p4k-lineup-meta span {
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  color: #d8dae0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.p4k-lineup-meta b {
  display: block;
  margin-bottom: 3px;
  color: #8e929a;
  font-size: 9px;
  text-transform: uppercase;
}

.p4k-lineup-pitch {
  position: relative;
  min-height: 550px;
  padding: 34px 10px 28px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 47px, rgba(255, 255, 255, .28) 48px 50px, transparent 51px),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(255, 255, 255, .28) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 12.5%, rgba(0, 0, 0, .025) 12.5% 25%),
    linear-gradient(160deg, #176039, #0f472b);
}

.p4k-lineup-pitch::before,
.p4k-lineup-pitch::after {
  position: absolute;
  left: 50%;
  width: 52%;
  height: 16%;
  border: 2px solid rgba(255, 255, 255, .28);
  content: "";
  transform: translateX(-50%);
}

.p4k-lineup-pitch::before {
  top: -2px;
  border-top: 0;
}

.p4k-lineup-pitch::after {
  bottom: -2px;
  border-bottom: 0;
}

.p4k-pitch-direction,
.p4k-pitch-caption {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.p4k-pitch-direction {
  top: 9px;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.p4k-pitch-caption {
  bottom: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
}

.p4k-pitch-lines {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 485px;
  flex-direction: column;
  justify-content: space-around;
}

.p4k-pitch-line {
  display: grid;
  grid-template-columns: repeat(var(--p4k-player-count, 1), minmax(0, 1fr));
  align-items: start;
  gap: 4px;
}

.p4k-pitch-goalkeeper {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.p4k-player-token,
.p4k-starter-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
}

.p4k-player-token > b,
.p4k-starter-chip > b {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: #e73e36;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 11px;
}

.p4k-lineup-card[data-side="away"] .p4k-player-token > b,
.p4k-lineup-card[data-side="away"] .p4k-starter-chip > b {
  background: #eaa62c;
  color: #241704;
}

.p4k-player-token > span,
.p4k-starter-chip > span {
  display: block;
  max-width: 92px;
  margin-top: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.p4k-player-token > small,
.p4k-starter-chip > small {
  margin-top: 2px;
  color: #d5f7e3;
  font-size: 8px;
  line-height: 1.2;
}

.p4k-squad-fallback {
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.p4k-squad-fallback > p {
  margin: 0 0 10px !important;
  color: #aeb2b9 !important;
  font-size: 12px;
}

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

.p4k-starter-chip {
  padding: 8px 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .045);
}

.p4k-bench {
  margin-top: 14px;
}

.p4k-bench h5 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 15px;
}

.p4k-bench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p4k-bench-grid li {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.p4k-bench-grid li > b {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 10px;
}

.p4k-bench-grid li span,
.p4k-bench-grid li strong,
.p4k-bench-grid li small {
  display: block;
  min-width: 0;
}

.p4k-bench-grid li strong {
  color: #e6e7ea;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.p4k-bench-grid li small {
  margin-top: 2px;
  color: #969aa2;
  font-size: 9px;
  line-height: 1.3;
}

.p4k-stat-dashboard[data-ui-version="3"] {
  scroll-margin-top: 20px;
}

.p4k-stat-all-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.p4k-stat-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 17px;
  background: rgba(0, 0, 0, .18);
}

.p4k-stat-group[data-stat-group="summary"] {
  grid-column: 1 / -1;
}

.p4k-stat-group > header {
  margin-bottom: 9px;
}

.p4k-stat-group > header h4 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.p4k-stat-group > header p {
  margin: 4px 0 0 !important;
  color: #9ea2aa !important;
  font-size: 12px;
  line-height: 1.45;
}

.p4k-stat-group .p4k-stat-key-list {
  border-radius: 13px;
}

.p4k-stat-group .p4k-stat-key-list > li {
  padding: 11px;
}

.p4k-stat-bar[data-leading="neutral"] .p4k-stat-row-head strong {
  color: #f4f5f6;
}

@media (max-width: 920px) {
  .p4k-story-grid {
    grid-template-columns: 1fr;
  }

  .p4k-lineup-grid,
  .p4k-stat-all-bars {
    grid-template-columns: 1fr;
  }

  .p4k-stat-group[data-stat-group="summary"] {
    grid-column: auto;
  }

  .p4k-lineup-pitch {
    min-height: 600px;
  }

  .p4k-pitch-lines {
    min-height: 535px;
  }
}

@media (max-width: 620px) {
  .p4k-report-nav {
    margin-inline: -4px;
  }

  .p4k-score-dashboard,
  .p4k-events-visual,
  .p4k-lineup-visual {
    border-radius: 20px;
  }

  .p4k-score-dashboard .p4k-final-score {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .p4k-score-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p4k-event-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p4k-event-feed > li {
    grid-template-columns: 50px 30px minmax(0, 1fr);
    gap: 7px;
    padding: 10px;
  }

  .p4k-lineup-card {
    padding: 11px;
  }

  .p4k-lineup-meta {
    grid-template-columns: 1fr;
  }

  .p4k-lineup-pitch {
    min-height: 530px;
    padding-inline: 5px;
  }

  .p4k-pitch-lines {
    min-height: 465px;
  }

  .p4k-player-token > b {
    width: 28px;
    height: 28px;
  }

  .p4k-player-token > span {
    max-width: 64px;
    font-size: 8px;
  }

  .p4k-bench-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .p4k-score-phases {
    grid-template-columns: 1fr;
  }

  .p4k-score-dashboard .p4k-final-score strong {
    min-width: 82px;
    padding-inline: 7px;
  }

  .p4k-event-summary {
    grid-template-columns: 1fr;
  }
}

/* V3 renderer alignment: shortcode markup is emitted after wpautop. */
.p4k-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.p4k-report-heading > div {
  min-width: 0;
}

.p4k-report-heading > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--p4k-away);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.p4k-report-heading > strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(72, 211, 138, .24);
  border-radius: 999px;
  background: rgba(72, 211, 138, .09);
  color: #78e4aa;
  font-size: 11px;
  white-space: nowrap;
}

.p4k-report-nav {
  display: block;
}

.p4k-report-nav ul {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p4k-report-nav li {
  flex: 0 0 auto;
}

.p4k-score-dashboard > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  margin: 0;
}

.p4k-score-team,
.p4k-score-main {
  min-width: 0;
}

.p4k-score-team > span,
.p4k-score-main > span {
  display: block;
  margin-bottom: 6px;
  color: #9da1a9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.p4k-score-team > strong {
  display: block;
  color: #fff;
  font-size: clamp(17px, 3vw, 25px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.p4k-score-team-away {
  text-align: right;
}

.p4k-score-main {
  text-align: center;
}

.p4k-score-main > strong {
  display: inline-flex;
  min-width: 136px;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 19px;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  font-size: clamp(34px, 6vw, 52px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1;
}

.p4k-score-main > strong i {
  margin-inline: 8px;
  color: #757a83;
  font: inherit;
  font-style: normal;
}

.p4k-score-phase {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
}

.p4k-score-phase > span,
.p4k-score-phase > strong {
  display: block;
}

.p4k-score-phase > span {
  color: #aeb2b9;
  font-size: 11px;
  font-weight: 800;
}

.p4k-score-phase > strong {
  margin-top: 5px;
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.p4k-match-meta > article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 13px;
  background: var(--p4k-surface);
}

.p4k-match-meta > article > span,
.p4k-match-meta > article > strong,
.p4k-match-meta > article > time {
  display: block;
}

.p4k-match-meta > article > span {
  margin-bottom: 4px;
  color: #92969e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p4k-match-meta > article > strong,
.p4k-match-meta > article > time {
  color: #f0f1f3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.p4k-section-kicker {
  color: var(--p4k-away);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.p4k-events-visual > header,
.p4k-lineup-visual > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.p4k-events-visual > header > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .065);
  color: #c9ccd2;
  font-size: 11px;
}

.p4k-event-summary article {
  display: grid;
  grid-template-columns: 34px minmax(28px, auto) minmax(0, 1fr);
  min-height: 62px;
}

.p4k-event-summary article > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 194, 71, .12);
  color: var(--p4k-away);
  font-size: 10px;
  font-weight: 900;
}

.p4k-event-summary article > strong {
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.p4k-event-summary article > small {
  color: #b8bbc2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.p4k-event-summary article[data-event-kind="event"] {
  grid-column: span 2;
}

.p4k-timeline-axis .p4k-timeline-tick {
  left: var(--p4k-position);
}

.p4k-timeline-markers {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p4k-timeline-markers .p4k-timeline-marker {
  left: var(--p4k-position);
  top: calc(26px + ((var(--p4k-event-lane, 0)) * 14px));
}

.p4k-timeline-markers .p4k-event-away,
.p4k-timeline-markers [data-side="away"] {
  top: 118px;
}

.p4k-timeline-markers .p4k-event-neutral,
.p4k-timeline-markers [data-side="neutral"] {
  top: 72px;
}

.p4k-timeline-marker > span {
  display: inline-flex;
  min-width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
  border: 2px solid #0d0f11;
  border-radius: 99px;
  background: var(--p4k-home);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.p4k-timeline-marker.p4k-event-away > span,
.p4k-timeline-marker[data-side="away"] > span {
  background: var(--p4k-away);
  color: #211602;
}

.p4k-timeline-marker.p4k-event-var > span {
  background: var(--p4k-blue);
  color: #071526;
}

.p4k-timeline-marker.p4k-event-card > span {
  background: #f1d83c;
  color: #18170c;
}

.p4k-timeline-marker.p4k-event-substitution > span {
  background: #818690;
}

.p4k-event-feed > li[data-side="away"] {
  border-right: 3px solid var(--p4k-away);
  border-left-color: rgba(255, 255, 255, .08);
}

.p4k-event-copy > small:first-child {
  display: block;
  margin-bottom: 2px;
  color: #92969e;
  font-size: 11px;
  font-weight: 800;
}

.p4k-event-copy > span {
  display: block;
  margin-top: 5px;
  color: #aeb2b9;
  font-size: 12px;
  line-height: 1.5;
}

.p4k-event-copy > .p4k-event-change {
  display: block;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(66, 214, 125, .075);
  color: #cdeedb;
}

.p4k-event-copy > .p4k-event-change i {
  margin-inline: 4px;
  color: var(--p4k-away);
  font-style: normal;
}

.p4k-lineup-card[data-team-index="0"] {
  box-shadow: inset 3px 0 var(--p4k-home);
}

.p4k-lineup-card[data-team-index="1"] {
  box-shadow: inset -3px 0 var(--p4k-away);
}

.p4k-coach-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
}

.p4k-coach-card span {
  color: #92969e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.p4k-coach-card strong {
  color: #fff;
  font-size: 12px;
  text-align: right;
}

.p4k-lineup-pitch {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.p4k-lineup-pitch::before,
.p4k-lineup-pitch::after {
  display: none;
}

.p4k-lineup-pitch > header,
.p4k-lineup-bench > header,
.p4k-lineup-fallback > header,
.p4k-lineup-extra > strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  margin: 12px 0 8px;
}

.p4k-lineup-pitch > header strong,
.p4k-lineup-bench > header strong,
.p4k-lineup-fallback > header strong,
.p4k-lineup-extra > strong {
  color: #fff;
  font-size: 13px;
}

.p4k-lineup-pitch > header small,
.p4k-lineup-bench > header small,
.p4k-lineup-fallback > header small {
  max-width: 66%;
  color: #9da1a9;
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.p4k-pitch-surface {
  position: relative;
  display: flex;
  min-height: 550px;
  justify-content: space-around;
  padding: 30px 7px 26px;
  overflow: hidden;
  flex-direction: column;
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 47px, rgba(255, 255, 255, .28) 48px 50px, transparent 51px),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(255, 255, 255, .28) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 12.5%, rgba(0, 0, 0, .025) 12.5% 25%),
    linear-gradient(160deg, #176039, #0f472b);
}

.p4k-pitch-surface::before,
.p4k-pitch-surface::after {
  position: absolute;
  left: 50%;
  width: 52%;
  height: 16%;
  border: 2px solid rgba(255, 255, 255, .28);
  content: "";
  transform: translateX(-50%);
}

.p4k-pitch-surface::before {
  top: -2px;
  border-top: 0;
}

.p4k-pitch-surface::after {
  bottom: -2px;
  border-bottom: 0;
}

.p4k-pitch-surface > .p4k-pitch-lines {
  display: none;
}

.p4k-pitch-surface > .p4k-pitch-line {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 3px;
}

.p4k-pitch-surface .p4k-player-token {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.p4k-player-number {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: #e73e36;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.p4k-lineup-card[data-team-index="1"] .p4k-player-number {
  background: #eaa62c;
  color: #241704;
}

.p4k-pitch-surface .p4k-player-token > strong {
  display: block;
  max-width: 90px;
  margin-top: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.p4k-pitch-surface .p4k-player-token > small {
  display: block;
  margin-top: 2px;
  color: #d5f7e3;
  font-size: 9px;
  line-height: 1.2;
}

.p4k-lineup-bench,
.p4k-lineup-fallback,
.p4k-lineup-extra {
  margin-top: 14px;
}

.p4k-bench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.p4k-bench-player {
  position: relative;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.p4k-bench-player .p4k-player-number {
  width: 27px;
  height: 27px;
  grid-row: 1 / span 3;
  font-size: 10px;
}

.p4k-bench-player > strong,
.p4k-bench-player > small {
  grid-column: 2;
  min-width: 0;
}

.p4k-bench-player > strong {
  color: #e6e7ea;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.p4k-bench-player > small {
  color: #a4a8b0;
  font-size: 10px;
  line-height: 1.3;
}

.p4k-stat-dashboard.p4k-stat-all-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-header,
.p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-teams,
.p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-details {
  grid-column: 1 / -1;
}

.p4k-stat-group > ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(0, 0, 0, .2);
  list-style: none;
}

.p4k-stat-group > ol > li {
  padding: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.p4k-stat-group > ol > li:last-child {
  border-bottom: 0;
}

.p4k-stat-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.p4k-stat-group > header > span {
  color: #8f939b;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .p4k-stat-dashboard.p4k-stat-all-bars {
    grid-template-columns: 1fr;
  }

  .p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-header,
  .p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-teams,
  .p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-details {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .p4k-report-heading {
    display: block;
  }

  .p4k-report-heading > strong {
    display: inline-flex;
    margin-top: 10px;
  }

  .p4k-score-dashboard > header {
    gap: 8px;
  }

  .p4k-score-main > strong {
    min-width: 86px;
    min-height: 64px;
    padding-inline: 8px;
    font-size: 31px;
  }

  .p4k-score-team > strong {
    font-size: 14px;
  }

  .p4k-event-summary article[data-event-kind="event"] {
    grid-column: auto;
  }

  .p4k-lineup-pitch > header,
  .p4k-lineup-bench > header,
  .p4k-lineup-fallback > header {
    display: block;
  }

  .p4k-lineup-pitch > header small,
  .p4k-lineup-bench > header small,
  .p4k-lineup-fallback > header small {
    display: block;
    max-width: none;
    margin-top: 3px;
    text-align: left;
  }

  .p4k-pitch-surface {
    min-height: 505px;
    padding-inline: 3px;
  }

  .p4k-pitch-surface .p4k-player-token > strong {
    max-width: 64px;
    font-size: 9px;
  }

  .p4k-bench-grid {
    grid-template-columns: 1fr;
  }
}

.p4k-timeline-markers .p4k-event-home:nth-child(3n + 2) {
  top: 41px;
}

.p4k-timeline-markers .p4k-event-home:nth-child(3n) {
  top: 56px;
}

.p4k-timeline-markers .p4k-event-away:nth-child(3n + 2) {
  top: 104px;
}

.p4k-timeline-markers .p4k-event-away:nth-child(3n) {
  top: 132px;
}

.p4k-match-report[data-ui-version="3"] {
  container-name: p4k-report;
  container-type: inline-size;
}

@container p4k-report (max-width: 760px) {
  .p4k-story-grid,
  .p4k-lineup-grid,
  .p4k-stat-dashboard.p4k-stat-all-bars {
    grid-template-columns: 1fr;
  }

  .p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-header,
  .p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-teams,
  .p4k-stat-dashboard.p4k-stat-all-bars > .p4k-stat-details {
    grid-column: auto;
  }

  .p4k-stat-row-head span {
    overflow: visible;
    text-overflow: clip;
  }

  .p4k-event-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p4k-event-summary article[data-event-kind="event"] {
    grid-column: auto;
  }

  .p4k-pitch-surface {
    min-height: clamp(505px, 112cqw, 680px);
  }
}

.p4k-event-summary article > small {
  min-width: 0;
  overflow-wrap: anywhere;
}

@container p4k-report (max-width: 360px) {
  .p4k-event-summary {
    grid-template-columns: 1fr;
  }
}

@container p4k-report (max-width: 320px) {
  .p4k-score-dashboard > header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .p4k-score-main {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .p4k-score-team-home {
    grid-row: 2;
    grid-column: 1;
  }

  .p4k-score-team-away {
    grid-row: 2;
    grid-column: 2;
  }

  .p4k-score-team > strong {
    overflow-wrap: normal;
    word-break: normal;
  }
}

