.cup-page {
    min-height: 100vh;
    padding: 2.5rem 0 4rem;
    background: #f3f5f8;
}

.cup-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 2.5rem;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 55%, #ff6b35 160%);
    box-shadow: 0 18px 45px rgba(26, 26, 26, .18);
}
.cup-hero::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 46px solid rgba(255, 210, 63, .08);
    border-radius: 50%;
}
.cup-hero > * { position: relative; z-index: 1; }
.cup-hero h1 { margin: .25rem 0 .6rem; color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1; }
.cup-hero p { max-width: 660px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 1.02rem; line-height: 1.55; }
.cup-eyebrow, .cup-kicker { color: #e7a72f; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.cup-season { display: grid; gap: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cup-season select {
    min-width: 140px;
    padding: .7rem .9rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    color: inherit;
    background: rgba(255, 255, 255, .12);
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}
.cup-season select option { color: #12213a; background: #fff; }

.cup-card {
    border: 1px solid #e1e6ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(31, 45, 65, .06);
}
.cup-empty { padding: 2.5rem; text-align: center; color: #5f6d80; }
.cup-empty h2 { margin: 0 0 .5rem; color: #10213b; }

.cup-heading, .cup-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.cup-heading { padding: 1.3rem 1.5rem; border-bottom: 1px solid #e8ecf1; }
.cup-section-title { margin: 2rem 0 .9rem; }
.cup-heading h2, .cup-section-title h2 { margin: .2rem 0 0; color: #10213b; font-size: 1.35rem; }
.cup-section-title time { color: #6b7480; font-size: .78rem; }

/* Bracket */
.cup-bracket {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 1.4rem 1.5rem 1.6rem;
    overflow-x: auto;
}
.cup-round { display: flex; flex-direction: column; justify-content: space-around; gap: 1rem; }
.cup-round h3 { margin: 0; color: #738094; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cup-match {
    display: grid;
    gap: .15rem;
    padding: .7rem .8rem .65rem;
    border: 1px solid #e3e8ef;
    border-left: 3px solid #ff6b35;
    border-radius: 10px;
    background: #fbfcfd;
}
.cup-match-label { color: #8a94a3; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cup-match-team {
    display: grid;
    grid-template-columns: 1.2rem 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-height: 34px;
    color: #14243e;
    font-weight: 700;
    font-size: .9rem;
}
.cup-match-team a { overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.cup-match-team a:hover { color: #e85a2a; }
.cup-match-team.is-loser { color: #8a94a3; font-weight: 600; }
.cup-match-team.is-winner .cup-score { color: #e85a2a; }
.cup-seed { color: #8a94a3; font-size: .72rem; font-weight: 800; text-align: center; }
.cup-score { font-size: 1rem; font-variant-numeric: tabular-nums; }
.cup-tbd { grid-column: 2 / -1; color: #9aa3b1; font-weight: 600; font-style: italic; }
.cup-match-meta { display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin-top: .3rem; color: #6b7480; font-size: .74rem; }
.cup-match.is-final .cup-match-meta span:first-child { color: #168354; font-weight: 800; }

/* Groups */
.cup-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cup-wildcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cup-group { overflow: hidden; }
.cup-group h3 { margin: 0; padding: .85rem 1rem; color: #10213b; border-bottom: 1px solid #edf0f4; font-size: 1rem; }
.cup-table-wrap { overflow-x: auto; }
.cup-table { width: 100%; border-collapse: collapse; }
.cup-table th { padding: .55rem .45rem; white-space: nowrap; color: #738094; background: #f8f9fb; font-size: .64rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.cup-table th:not(:first-child) { text-align: right; }
.cup-table td { padding: .55rem .45rem; border-top: 1px solid #edf0f4; color: #24344e; font-size: .86rem; }
.cup-table tbody tr:first-child td { border-top: 0; }
.cup-table tr.is-out td { color: #9aa3b1; }
.cup-table tr.is-out .cup-team a { color: #8a94a3; }
.cup-table tr.is-leader td { background: #fff8f2; }
.cup-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cup-num.pos { color: #168354; }
.cup-num.neg { color: #c33b4a; }
.cup-muted { color: #738094; text-align: right; }

.cup-team { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.cup-team a { overflow: hidden; color: #14243e; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.cup-team a:hover { color: #e85a2a; }
.cup-rank { display: inline-grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #8a94a3; font-size: .7rem; font-weight: 800; }
.cup-rank.clinched { color: #fff; background: #168354; }
.cup-logo { flex: 0 0 auto; width: 24px; height: 24px; object-fit: contain; }
.cup-results { display: inline-flex; flex: 0 0 auto; gap: 2px; margin-left: auto; padding-left: .35rem; }
.cup-result { display: grid; width: 13px; height: 13px; place-items: center; border-radius: 3px; font-size: .58rem; font-weight: 800; }
.cup-result.win { color: #fff; background: #168354; }
.cup-result.loss { color: #fff; background: #c33b4a; }
.cup-result.pending { color: #9aa3b1; background: #eef1f5; }

.cup-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .8rem 0 0; color: #6b7480; font-size: .8rem; }
.cup-legend .cup-rank { width: 18px; height: 18px; font-size: .62rem; }
.cup-legend-out { margin-left: .8rem; color: #9aa3b1; font-weight: 700; }

.cup-note { margin: .8rem 0 0; color: #6b7480; font-size: .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1080px) {
    .cup-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .cup-page { padding-top: 1.25rem; }
    .cup-hero { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
    .cup-groups, .cup-wildcards { grid-template-columns: 1fr; }
    .cup-bracket { grid-template-columns: repeat(3, minmax(210px, 1fr)); padding: 1rem; }
    .cup-section-title { flex-direction: column; align-items: flex-start; gap: .3rem; }
}

