/* Owner: recent-matches. Base and state rules retain order; conditional blocks own responsiveness. */
.ap-sport-widget.ap-recent { container-type: inline-size; border: 1px solid #d6e1e8; border-radius: var(--ap-ui-radius,0px); background: #fff; color: #04233a; padding: 24px; box-sizing: border-box; font-family: inherit; overflow-wrap: anywhere; }
.ap-recent .ap-recent__heading { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.ap-recent .ap-recent__heading h2 { font-family: inherit; font-size: var(--ap-ui-title-size); font-weight: var(--ap-ui-title-weight); line-height: var(--ap-ui-title-line); margin: 0; color: #04233a; }
.ap-recent__portrait { width: 64px; height: 80px; object-fit: cover; object-position: center 20%; border-radius: var(--ap-ui-radius,0px); flex: none; }
.ap-recent .ap-recent__period { font-size: 12px; color: #486174; margin: 0 0 20px; line-height: 1.6; }
.ap-recent .ap-recent__outcomes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.ap-recent .ap-recent__outcome { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: var(--ap-ui-radius,0px); font-weight: 800; margin: 0; }
.ap-recent__outcome--win { background: #e4f3ec; color: #176442; }
.ap-recent__outcome--loss { background: #fdebed; color: #a32734; }
.ap-recent .ap-recent__metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 16px; }
.ap-recent__metrics>div { padding: 16px; background: #f0f4f6; border-radius: var(--ap-ui-radius,0px); min-width: 0; }
.ap-recent__metrics dt { font-size: 13px; color: #486174; }
.ap-recent__metrics dd { font-size: clamp(24px,5cqi,36px); font-weight: 800; margin: 8px 0 0; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ap-recent__details>summary { cursor: pointer; align-content: center; font-weight: 650; font-size: 14px; color: #365568; }
.ap-recent .ap-recent__matches { padding: 0; margin: 16px 0 0; list-style: none; display: grid; gap: 16px; }
.ap-recent .ap-recent__matches>li { padding: 0; margin: 0; border: 1px solid #d6e1e8; border-radius: var(--ap-ui-radius,0px); overflow: hidden; }
.ap-recent-match__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: #eff4f7; padding: 10px 12px; font-size: 12px; color: #405969; }
.ap-recent-match__team { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-top: 1px solid #e1e9ee; }
.ap-recent-match__team--winner { background: #fffae8; }
.ap-recent-match__identity { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-recent-match__identity strong { font-size: 16px; line-height: 1.5; flex: 1; min-width: 90px; }
.ap-recent-match__portraits { display: flex; gap: 4px; }
.ap-recent-match__portraits img { width: 40px; height: 50px; border-radius: var(--ap-ui-radius,0px); object-fit: cover; object-position: center 20%; }
.ap-recent-match__winner { width: 100%; font-size: 12px; color: #526300; font-weight: 700; }
.ap-recent-match__sets { display: flex; align-items: center; gap: 5px; flex: none; }
.ap-recent-match__set { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 3px; box-sizing: border-box; border-radius: var(--ap-ui-radius,0px); background: #04233a; color: #fff; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-recent-match__set--won { background: #f4c430; color: #04233a; }
.ap-recent-match__set sup { position: static; vertical-align: super; font-size: 10px; }
.ap-recent-match__raw-score { padding: 0 12px 12px; font-weight: 750; }
@container(max-width:380px) {
  .ap-recent__metrics>div { padding: 12px 8px; }
  .ap-recent__metrics dt { font-size: 12px; }
  .ap-recent-match__team { padding: 12px 8px; gap: 6px; }
  .ap-recent-match__identity strong { font-size: 14px; min-width: 0; flex-basis: 100%; }
  .ap-recent-match__sets { gap: 3px; }
  .ap-recent-match__set { font-size: 20px; min-height: 38px; }
  .ap-recent-match__portraits img { width: 28px; height: 36px; }
}
@media(max-width:400px) {
  .ap-sport-widget.ap-recent { padding: 16px; }
}
.ap-recent summary:focus-visible { outline: 2px solid #075cac; outline-offset: 3px; }
