.cup-results [hidden] { display: none !important; }
.cup-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.cup-controls label { font-size: .85rem; font-weight: 600; }
.cup-card-round { margin-bottom: 1.5rem; }
.cup-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.cup-tie { color: #172b39; border: 1px solid #cbd8df; border-radius: .6rem; background: #fff; overflow: hidden; }
.cup-team { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .4rem; align-items: center; padding: .4rem .55rem; }
.cup-team + .cup-team { border-top: 1px solid #e6eef2; }
.cup-team img { grid-column: 1; grid-row: 1; }
.cup-team span { grid-column: 2; grid-row: 1; overflow-wrap: anywhere; }
.cup-team strong { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; }
.cup-team i { grid-column: 2; grid-row: 1; justify-self: end; }
.cup-winner { color: #14532d; background: #e9f7ee; font-weight: 700; }
.cup-winner span { padding-right: 1.1rem; }
.cup-tie-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: .25rem .55rem; color: #465965; font-size: .75rem; background: #f1f5f8; }
.cup-tie-meta:empty { display: none; }
.cup-tie-matches { list-style: none; margin: 0; padding: .35rem .55rem; font-size: .75rem; }
.cup-tie-matches li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .4rem; padding: .25rem 0; }
.cup-tie-matches li span:first-child { grid-column: 1 / -1; color: #465965; }
.cup-bracket { position: relative; display: flex; gap: 1rem; }
.cup-bracket-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cup-bracket-lines path { fill: none; stroke: #577b6a; stroke-width: 2; }
.cup-bracket-column { flex: 1 1 0; min-width: 0; z-index: 1; display: flex; flex-direction: column; }
.cup-bracket-column h3 { font-size: .85rem; text-align: center; }
.cup-bracket-slots { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .6rem; }
.cup-bracket-node { font-size: .82rem; }
.cup-bracket-node:focus { outline: 2px solid #14532d; outline-offset: 2px; }
.cup-next { display: block; margin-top: .2rem; }
@media (min-width: 1200px) {
    .cup-bracket-picker, a.cup-next { display: none; }
}
@media (max-width: 1199.98px) {
    .cup-bracket { display: grid; }
    .cup-bracket-column:not(.cup-current-stage), .cup-bracket-lines { display: none; }
    .cup-bracket-column h3 { text-align: left; }
    .cup-bracket-node { font-size: 1rem; }
}

.tournament-cup-results .cup-results .text-muted { color: #fff !important; }
