/* The live (preliminary) cup page. Every rule starts with .p-cuplive so nothing here can touch another page.
   Colours come from the tokens in sfp.css. */
.p-cuplive .cl-head { margin-top: 6px; }
.p-cuplive .cl-h1 { display: flex; align-items: center; gap: 10px; margin: 0 4px; font-size: 26px; font-weight: 600; }
.p-cuplive .cl-icon { flex: none; width: 40px; height: 40px; }
.p-cuplive .cl-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.p-cuplive .cl-lead { margin: 0 4px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.p-cuplive .cl-lead a { color: var(--accent-2); }
.p-cuplive .cl-note { margin: 10px 4px 0; font-size: 13px; line-height: 1.45; color: var(--ink-faint); }
.p-cuplive .cl-warn { margin: 0 4px; font-size: 14px; line-height: 1.45; color: var(--gold); }
.p-cuplive .cl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 4px; }
.p-cuplive .cl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--hair); color: var(--ink-soft); }
.p-cuplive .cl-pill.live { color: #fff; background: var(--down); border-color: var(--down); }
.p-cuplive .cl-pill.live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; animation: cl-pulse 1.4s ease-in-out infinite; }
.p-cuplive .cl-pill.wait { color: var(--gold); border-color: var(--gold); }
.p-cuplive .cl-pill.done { color: var(--up); border-color: var(--up); }
.p-cuplive .cl-pill.prov { color: var(--accent-2); border-color: var(--accent-2); }
@keyframes cl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .p-cuplive .cl-pill.live i { animation: none; } }

/* Day tabs for the ticker. */
.p-cuplive .cl-tabs { display: flex; gap: 8px; margin: 4px 4px 8px; }
/* The day tabs are the same height and type as the pills above them; the invisible ::after keeps the tap area comfortable. */
.p-cuplive .cl-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: normal; color: var(--ink-soft); background: rgba(255,255,255,.05); border: 1px solid var(--card-border); border-radius: 99px; padding: 4px 10px; cursor: pointer; }
.p-cuplive .cl-tab::after { content: ''; position: absolute; inset: -8px -4px; }
.p-cuplive .cl-tab small { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-faint); }
.p-cuplive .cl-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-cuplive .cl-tab.on small { color: rgba(255,255,255,.85); }
.p-cuplive .cl-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.p-cuplive .cl-tkday[hidden] { display: none; }
.p-cuplive .cl-tm { font-weight: 800; color: #fff; }
.p-cuplive .cl-foot { margin: 26px 4px 0; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.45; color: var(--ink-faint); }
.p-cuplive .cl-foot p { margin: 0 0 6px; }

/* Our team badges (the same as the league table) sit before each team name. */
.p-cuplive .cl-t .badge, .p-cuplive .cl-teamh .badge, .p-cuplive .cl-tm .badge { margin-right: 8px; vertical-align: middle; }
.p-cuplive .cl-t { display: flex; align-items: center; }
.p-cuplive .cl-teamh b { display: flex; align-items: center; }
/* The goal ticker. Without JavaScript (or with "reduce motion" switched on) it is a plain row you can swipe.
   cuplive.js adds .cl-tk-run when there are more goals than fit, and the row then drifts steadily. */
.p-cuplive .cl-tkbar { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; max-width: 100%; }
.p-cuplive .cl-lbl, .p-cuplive .cl-ticker-lbl { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
/* The newest goal that counts: pinned, highlighted. It glows for two minutes when it arrives while the page is open. */
.p-cuplive .cl-pin { display: block; min-width: 0; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 14px; background: rgba(242,44,247,.16); font-size: 15px; line-height: 1.3; }
.p-cuplive .cl-pin b { color: var(--accent-2); font-weight: 700; margin-right: 6px; }
.p-cuplive .cl-chip { display: none; margin-right: 8px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.p-cuplive .cl-pin.cl-new { border-color: #fff; background: rgba(242,44,247,.34); animation: cl-glow 1.6s ease-in-out infinite; }
.p-cuplive .cl-pin.cl-new .cl-chip { display: inline-block; }
@keyframes cl-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,44,247,0); } 50% { box-shadow: 0 0 18px 4px rgba(242,44,247,.65); } }
.p-cuplive .cl-empty { flex-direction: row; align-items: center; gap: 10px; }
.p-cuplive .cl-emptytext { font-size: 14px; color: var(--ink-faint); }
.p-cuplive .cl-picks { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 10px 4px 0; padding: 10px 14px; border: 1px solid var(--accent-2); border-radius: 12px; background: rgba(102,229,246,.1); font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.p-cuplive .cl-picks b { color: #fff; font-weight: 600; }
.p-cuplive .cl-picksbtn { flex: none; padding: 8px 14px; min-height: 36px; box-sizing: border-box; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.p-cuplive .cl-runrow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.p-cuplive .cl-tk-window { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.p-cuplive .cl-tk-track { display: flex; width: max-content; }
.p-cuplive .cl-tk-set { display: flex; gap: 8px; padding: 0 8px 0 0; margin: 0; list-style: none; }
.p-cuplive .cl-tkbar.cl-tk-run .cl-tk-window { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.p-cuplive .cl-tkbar.cl-tk-run .cl-tk-track { animation-duration: var(--cl-tk-dur, 60s); animation-timing-function: linear; animation-iteration-count: infinite; }
.p-cuplive .cl-tkbar.cl-tk-ltr .cl-tk-track { animation-name: cl-tk-ltr; }
.p-cuplive .cl-tkbar.cl-tk-rtl .cl-tk-track { animation-name: cl-tk-rtl; }
.p-cuplive .cl-tkbar.cl-tk-run .cl-tk-track:hover, .p-cuplive .cl-tkbar.cl-tk-run .cl-tk-track:focus-within { animation-play-state: paused; }
@keyframes cl-tk-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes cl-tk-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .p-cuplive .cl-tkbar.cl-tk-run .cl-tk-track { animation: none; } .p-cuplive .cl-pin.cl-new { animation: none; } }
.p-cuplive .cl-ti { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--card-border); border-radius: 99px; background: rgba(255,255,255,.06); font-size: 14px; white-space: nowrap; }
.p-cuplive .cl-ti b { color: var(--accent-2); font-weight: 700; }
.p-cuplive .cl-ti em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.p-cuplive .cl-ti.og { border-color: var(--gold); }

.p-cuplive .cl-h { margin: 18px 4px 8px; font-size: 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.p-cuplive .cl-h small { font-size: 12px; font-weight: 500; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; }
.p-cuplive .cl-cols > div > .cl-h:first-child { margin-top: 6px; }
.p-cuplive .cl-fx { padding: 12px 14px; margin-bottom: 10px; }
.p-cuplive .cl-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.p-cuplive .cl-st { color: var(--ink-soft); border: 1px solid var(--hair); border-radius: 6px; padding: 2px 8px; }
.p-cuplive .cl-st.live { color: #fff; background: var(--down); border-color: var(--down); }
/* Phone: the two teams are stacked, score at the right, each team's scorers under its name. */
.p-cuplive .cl-board { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "home hs" "hg hg" "away as" "ag ag"; gap: 4px 12px; align-items: center; margin-top: 10px; }
.p-cuplive .cl-t { font-size: 17px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; min-width: 0; }
.p-cuplive .cl-t.home { grid-area: home; }
.p-cuplive .cl-t.away { grid-area: away; margin-top: 8px; }
.p-cuplive .cl-n { font-size: 26px; font-weight: 700; line-height: 1; text-align: right; min-width: 1ch; }
.p-cuplive .cl-n.hs { grid-area: hs; }
.p-cuplive .cl-n.as { grid-area: as; margin-top: 8px; }
.p-cuplive .cl-colon { display: none; }
.p-cuplive .cl-g { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; align-content: start; align-self: start; }
.p-cuplive .cl-g.home { grid-area: hg; }
.p-cuplive .cl-g.away { grid-area: ag; }
.p-cuplive .cl-g li small { color: var(--accent-2); font-weight: 600; margin-left: 4px; }
.p-cuplive .cl-g li.mut { color: var(--ink-faint); font-size: 13px; }
.p-cuplive .cl-freeboard { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.p-cuplive .cl-free { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

.p-cuplive .cl-tcard { padding: 10px 14px; }
.p-cuplive .cl-tbl { font-size: 15px; }
.p-cuplive .cl-tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px 28px 28px 34px 34px; gap: 0 2px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--hair); text-align: right; }
.p-cuplive .cl-tr .cl-rk { text-align: left; color: var(--ink-faint); }
.p-cuplive .cl-tr .cl-tm { display: flex; align-items: center; text-align: left; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.p-cuplive .cl-tr .cl-pts { font-weight: 700; }
/* Top four (the teams that go through): a pink bar to the left of the rank number only. */
.p-cuplive .cl-tr.q .cl-rk { color: var(--ink); font-weight: 700; box-shadow: -4px 0 0 var(--accent); padding-left: 4px; margin-left: -4px; }
.p-cuplive .cl-th { border-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding: 4px 4px 6px; }
.p-cuplive .cl-th > span { color: var(--ink-faint); font-weight: 600; }

/* Provisional goals (a player not in the XI yet) and free-week goals. */
.p-cuplive .cl-star { color: var(--gold); font-weight: 700; }
.p-cuplive sup.cl-star { font-size: .55em; margin-left: 2px; vertical-align: super; }
.p-cuplive .cl-pin.unc { border-style: dashed; border-color: var(--gold); background: rgba(255,255,255,.06); }
.p-cuplive .cl-unc { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.p-cuplive .cl-ti.unc { border-style: dashed; border-color: var(--gold); background: rgba(255,255,255,.03); color: var(--ink-soft); }
.p-cuplive .cl-ti.free { opacity: .7; font-style: italic; }
.p-cuplive .cl-g li.unc { color: var(--ink-faint); font-style: italic; }
.p-cuplive .cl-g li.unc small { color: var(--gold); }
.p-cuplive .cl-fgl { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-faint); font-style: italic; }
.p-cuplive .cl-fgl b { color: var(--ink-soft); font-weight: 600; }
.p-cuplive .cl-tkfoot { margin: 0 4px 8px; }

/* "See the teams": each team's XI, shown only for players whose match has kicked off. */
.p-cuplive .cl-tv { margin-top: 12px; }
.p-cuplive .cl-tv summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--card-border); border-radius: 10px; background: rgba(255,255,255,.05); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; list-style: none; }
.p-cuplive .cl-tv summary::-webkit-details-marker { display: none; }
.p-cuplive .cl-tv summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-cuplive .cl-tv[open] summary svg { transform: rotate(180deg); }
.p-cuplive .cl-tv .cl-tv-open { display: none; }
.p-cuplive .cl-tv[open] .cl-tv-open { display: inline; }
.p-cuplive .cl-tv[open] .cl-tv-closed { display: none; }
.p-cuplive .cl-tv summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.p-cuplive .cl-tv-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); }
.p-cuplive .cl-teams { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.p-cuplive .cl-team { padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(0,0,40,.25); min-width: 0; }
.p-cuplive .cl-teamh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.p-cuplive .cl-teamh b { font-size: 15px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.p-cuplive .cl-chip2 { flex: none; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--accent-2); color: var(--accent-2); }
.p-cuplive .cl-chip2.lg { border-color: var(--hair); color: var(--ink-faint); }
.p-cuplive .cl-pos { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.45; }
.p-cuplive .cl-pos > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding-top: 2px; }
.p-cuplive .cl-pl { display: inline-block; margin-right: 10px; white-space: nowrap; color: var(--ink-soft); }
.p-cuplive .cl-pl.sc { color: #fff; font-weight: 700; }
.p-cuplive .cl-pl.none { color: var(--ink-faint); }
.p-cuplive .cl-pl .gl { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.p-cuplive .cl-hid { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--hair); border-radius: 8px; color: var(--ink-faint); font-size: 13px; }
.p-cuplive .cl-hid svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 700px) { .p-cuplive .cl-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Wider screens: the ticker is one row: label, pinned goal, then the moving goals. */
@media (min-width: 700px) {
  .p-cuplive .cl-tkbar { flex-direction: row; align-items: center; gap: 12px; }
  .p-cuplive .cl-pin { flex: none; max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-cuplive .cl-runrow { flex: 1 1 auto; }
  .p-cuplive .cl-earlierlbl { display: none; }
}
/* Wider screens: one scoreboard row, home | score : score | away, scorers underneath each side. */
@media (min-width: 700px) {
  .p-cuplive .cl-board { grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); grid-template-areas: "home hs colon as away" "hg hg hg ag ag"; gap: 8px 6px; }
  .p-cuplive .cl-t.home { text-align: right; justify-content: flex-start; flex-direction: row-reverse; }      /* row-reverse: flex-start is the RIGHT edge, so the name and badge sit against the score */
  .p-cuplive .cl-t.home .badge { margin: 0 0 0 8px; }
  .p-cuplive .cl-t.away { margin-top: 0; text-align: left; }
  .p-cuplive .cl-n { font-size: 26px; text-align: center; min-width: 0; }
  .p-cuplive .cl-n.as { margin-top: 0; }
  .p-cuplive .cl-colon { display: block; grid-area: colon; font-size: 26px; font-weight: 700; line-height: 1; }
  .p-cuplive .cl-g { padding-top: 8px; border-top: 1px solid var(--hair); margin-top: 4px; }
  .p-cuplive .cl-g.home { grid-column: 1 / 3; text-align: right; }
  .p-cuplive .cl-g.away { grid-column: 4 / 6; text-align: left; }
  .p-cuplive .cl-g li small { margin-left: 4px; }
}
@media (min-width: 1000px) {
  .p-cuplive .page { max-width: 1320px; }
  .p-cuplive .cl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--gap); align-items: start; }
}

/* The heading and pills are at the very top; the explanation lives in a "How it works" accordion. */
.p-cuplive .cl-head2 { margin-top: 0; }
.p-cuplive #cl-top .cl-pills { margin-bottom: 8px; }
.p-cuplive .cl-how { margin: 10px 4px 14px; }
.p-cuplive .cl-how summary { min-height: 40px; }
.p-cuplive .cl-how .cl-how-text { margin: 10px 0 4px; }

@media (max-width: 430px) {
  .p-cuplive .cl-pills { gap: 6px; }
  .p-cuplive .cl-pill { padding: 4px 8px; letter-spacing: .04em; }
}

.p-cuplive .cl-note a { color: var(--accent-2); }
