/* Stories and the nearest playing week's fixtures each have their own row. */
.latest-section .stories { grid-template-columns: 1.2fr 1fr; }
.next-matches { min-width: 0; margin-top: 30px; }
.next-matches-heading { display: block; margin-bottom: 12px; }
#next-match-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.next-matches .next-match { padding: 18px; min-width: 0; border-radius: 8px; container: fixture / inline-size; }
.next-matches .next-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.next-league-capsule { display: inline-block; padding: 7px 11px; border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 1.4; color: #13203c; background: #f47721; }
.next-match[data-comp="KLS"] .next-league-capsule { background: #d82335; color: #fff; }
.next-match[data-comp="JLS"] .next-league-capsule { background: #0077b5; color: #fff; }
.next-fixture-meta { display: flex; flex: 1 1 auto; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.next-matches .next-fixture-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; margin: 0; font: 600 18px/1.2 var(--display); }
.next-fixture-date time, .next-fixture-date small { white-space: nowrap; }
.next-fixture-date small { color: #9fbdf8; font: 600 15px/1.2 var(--display); }
.next-fixture-round, .next-fixture-tentative { color: #c2cde3; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.next-fixture-round { font-weight: 600; }
.next-matches .next-top .venue { margin-left: auto; color: #c2cde3; font-size: 8px; }
.next-matches .next-match-date { margin-top: 12px; font-size: 27px; line-height: 1.15; }
.next-matches .next-match-date small { display: inline-block; margin-left: 7px; font-size: 15px; }
.next-matches .next-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.next-matches .team-identity { --next-crest-size: 88px; width: auto; min-width: 0; flex-direction: row; justify-content: center; gap: 14px; font-size: 23px; line-height: 1.15; text-align: left; overflow-wrap: anywhere; }
.next-matches .team-identity .team-crest { width: var(--next-crest-size); height: var(--next-crest-size); flex: 0 0 var(--next-crest-size); }
.next-matches .team-identity .team-crest img { width: 100%; height: 100%; object-fit: contain; }
.next-matches .versus { white-space: nowrap; font: 600 24px/1 var(--display); }
.next-matches .live-badge { margin-top: 12px; color: #ffb6ac; }
.next-matches .live-badge.stale { color: #efd6a3; }
.next-matches .next-bottom { margin-top: auto; padding-top: 10px; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.next-match-details, .next-match-video { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #8daff4; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 600; line-height: 1.5; }
.next-match-details:hover, .next-match-video:hover { background: #ffffff10; }
.next-match-details:focus-visible, .next-match-video:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.match-video-icon { flex: 0 0 auto; }
.match-video-button { display: inline-flex; align-items: center; gap: 8px; }
.match-video-pending { font-size: 11px; color: var(--muted); }
.next-bottom .match-video-pending { color: #c2cde3; }
.next-matches .next-live-badge { display: block; margin: 0 0 12px; }
.next-matches .next-live-badge.inferred { display: inline-flex; }
.next-matches .next-live-badge .live-badge { margin: 0; }
.next-live-badge.live-badge > i, .next-live-badge .live-badge > i { width: 7px; height: 7px; background: #ff4c62; box-shadow: 0 0 0 3px #ff4c6226; animation: next-live-pulse 1.8s ease-in-out infinite; }
@keyframes next-live-pulse { 50% { box-shadow: 0 0 0 5px #ff4c6208; } }
@media (prefers-reduced-motion: reduce) {
  .next-live-badge.live-badge > i, .next-live-badge .live-badge > i { animation: none; }
}
.next-matches .next-empty { padding: 28px 22px; align-self: start; }
.next-empty p { margin-top: 12px; color: #c2cde3; font-size: 13px; }
@container fixture (max-width: 460px) {
  .next-matches .team-identity { --next-crest-size: 72px; flex-direction: column; gap: 9px; font-size: 21px; text-align: center; }
}
@media (min-width: 521px) and (max-width: 800px) {
  .latest-section .story-main { grid-column: auto; display: block; }
  .latest-section .story .story-image { height: 200px; }
  .latest-section .story-main .story-body { padding-top: 17px; }
}
@media (max-width: 640px) {
  #next-match-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .latest-section .stories { grid-template-columns: 1fr; }
  .next-matches .next-match { padding: 16px; }
  .next-matches .team-identity { font-size: 18px; gap: 8px; }
  .next-matches .next-teams { gap: 8px; }
}
