/* A compact next-match bar; full deadline guidance stays behind the info control. */
.cb-next-match { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; align-items: center; gap: 20px; margin: 24px 0; padding: 18px 22px; border: 1px solid #82e4b935; border-radius: 14px; background: radial-gradient(ellipse at 0 0, #46dba713, transparent 70%), linear-gradient(120deg, #102824, #0a191c); box-shadow: inset 0 1px #ceffe614; }
.cb-next-match-teams { min-width: 0; }
.cb-next-match .cb-next-match-toss { margin: 7px 0 0; color: #e0cfa3; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.cb-next-match .cb-eyebrow { margin: 0 0 7px; color: #8bebc0; font-size:10px; letter-spacing: .15em; }
.cb-next-match h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; color: #e8f8f0; font-size: 16px; font-weight: 650; line-height: 1.5; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cb-next-match-team, .cb-next-match-opponent { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.cb-next-match-team > span:not(.cb-squad-team-logo) { min-width: 0; }
.cb-next-match-team .cb-squad-team-logo { width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #8de6bb35; border-radius: 8px; background: #09201c; color: #a3edc8; font-size: 9px; letter-spacing: 0; }
.cb-next-match-team .cb-squad-team-logo img { width: 24px; height: 24px; object-fit: contain; }
.cb-next-match-vs { flex-shrink: 0; color: #8ba99c; font-size: 12px; font-weight: 400; }
.cb-next-match-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.cb-next-match-time { margin: 0; color: #b6d7c7; font-size: 12px; line-height: 1.65; }
.cb-next-match-time time { color: #d9f6e7; font-variant-numeric: tabular-nums; }
.cb-next-match .cb-deadline-badge { padding: 5px 10px; font-size: 11px; white-space: nowrap; }
.cb-next-match-info { justify-self: end; }
.cb-next-match-info summary { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #8de6bb35; border-radius: 50%; color: #99d9ba; background: #0a201b; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.cb-next-match-info summary::-webkit-details-marker { display: none; }
.cb-next-match-info summary:hover, .cb-next-match-info[open] summary { color: #c6ffe1; border-color: #8bebc080; background: #173a2c; }
.cb-next-match-info summary:focus-visible { outline: 2px solid #83f4bf; outline-offset: 4px; }
.cb-next-match-help { position: absolute; z-index: 5; right: 16px; top: calc(100% - 6px); width: min(340px, calc(100% - 32px)); box-sizing: border-box; margin: 0; padding: 16px 18px; border: 1px solid #8be7bb55; border-radius: 12px; color: #c6dfd2; background: #102b24; box-shadow: 0 12px 30px #0006; font-size: 13px; line-height: 1.7; }
.cb-next-match-help p { margin: 0; }
.cb-next-match-lineup { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; margin-top: 6px; }
.cb-next-match-lineup > p { margin: 0; color: #aecabd; font-size: 12px; line-height: 1.6; }
.cb-next-match-lineup > button { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; color: #8ee8be; font: inherit; font-size: 12px; cursor: pointer; }
.cb-next-match-lineup > button:focus-visible { outline: 2px solid #83f4bf; outline-offset: 3px; }
.cb-next-match-lineup-help { margin-top: 12px; padding-top: 12px; border-top: 1px solid #8be7bb33; }
.cb-next-match-help .cb-playing-xi-legend { margin: 8px 0; gap: 8px 12px; font-size: 12px; }
.cb-next-match-feedback:not(:has(> :not([hidden]))) { display: none; }
@media (max-width: 900px) {
  .cb-next-match { grid-template-columns: minmax(0, 1fr) 36px; gap: 10px 14px; }
  .cb-next-match-meta { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
  .cb-next-match-meta:empty { display: none; }
  .cb-next-match-info { grid-column: 2; grid-row: 1; }
}
@media (max-width: 480px) {
  .cb-next-match { padding: 16px; }
  .cb-next-match h2 { font-size: 14px; }
  .cb-next-match-time { font-size: 11px; }
}

/* Shared badges and admin fixture notices. */
.cb-deadline-badge { display: inline-flex; padding: 7px 12px; border: 1px solid rgba(85, 239, 188, .24); border-radius: 999px; color: #8bf9d2; background: rgba(62, 217, 164, .07); font-size: 12px; }
.cb-fixture-lock { margin: 22px 0; }
.cb-fixture-lock h2 { margin: 8px 0 12px; font-size: 24px; letter-spacing: -.025em; }
.cb-lock-notice { padding: 12px 16px; border-left: 2px solid #e3c488; background: rgba(227, 196, 136, .06); color: #e7d4ae; border-radius: 0 8px 8px 0; }

/* Server-anchored countdown. Exact time remains visible without JavaScript. */
.cb-next-match-clock { min-width: 0; }
.cb-match-countdown { --countdown-accent: #a0ffd6; --countdown-line: #8ce8b742; margin-bottom: 8px; }
.cb-match-countdown-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; color: #bddfce; font-size:10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cb-match-countdown-label > span:first-child::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--countdown-accent); box-shadow: 0 0 9px #80f5bc55; vertical-align: middle; }
.cb-match-countdown-soon { padding: 2px 5px; border-radius: 4px; color: #ffdb9f; background: #edb05815; border: 1px solid #edb05840; font-size:10px; letter-spacing: .04em; }
.cb-match-countdown-digits { display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.cb-match-countdown-unit { display: grid; justify-items: center; gap: 3px; min-width: 38px; }
.cb-match-countdown-unit strong { display: block; min-width: 38px; padding: 4px 7px; border: 1px solid var(--countdown-line); border-radius: 7px; background: linear-gradient(155deg, #24573e80, #081d19); box-shadow: inset 0 1px #d8ffe820, 0 3px 9px #0002; color: var(--countdown-accent); font-size: 22px; font-weight: 750; line-height: 1.15; letter-spacing: .025em; text-align: center; }
.cb-match-countdown-unit small { color: #a6c5b7; font-size:10px; line-height: 1.2; text-transform: uppercase; letter-spacing: .12em; }
.cb-match-countdown-colon { align-self: flex-start; padding-top: 4px; color: #80b29d; font-size: 20px; line-height: 1.3; }
.cb-next-match.is-locking-soon { border-color: #dba96c66; }
/* The edition overview's hero shows the same countdown (7 November 2026). */
:is(.cb-next-match, .cb-overview-hero-countdown).is-locking-soon .cb-match-countdown { --countdown-accent: #ffda9e; --countdown-line: #ebba7259; }
:is(.cb-next-match, .cb-overview-hero-countdown).is-locking-soon .cb-match-countdown-unit strong { background: linear-gradient(155deg, #72502b4d, #1c2118); }
.cb-match-countdown-status { max-width: 275px; margin: 8px 0 0; color: #e7d6af; font-size: 12px; line-height: 1.5; }
.cb-match-countdown-refresh { margin-top: 8px; padding: 6px 10px; border: 1px solid #91dabb59; border-radius: 6px; color: #c7f6df; background: #173b2c; font: inherit; font-size: 12px; cursor: pointer; }
.cb-match-countdown-refresh:focus-visible { outline: 2px solid #83f4bf; outline-offset: 3px; }
.cb-next-match [hidden] { display: none !important; }
@media (max-width: 900px) {
  .cb-next-match-meta { align-items: center; justify-content: space-between; }
}
@media (max-width: 480px) {
  .cb-next-match-meta { gap: 10px; }
  .cb-match-countdown-unit strong { font-size: 20px; }
}

/* Viewer's own time under PKT times (local_time_controller), only outside PKT. */
.cb-local-time { display:block; margin-top:3px; color:inherit; opacity:.78; font-size:12px; font-weight:500; letter-spacing:0; }
