.awc-worldcup,
.awc-worldcup * {
    box-sizing: border-box;
}

.awc-worldcup {
    --awc-ink: #111820;
    --awc-panel: #17212b;
    --awc-muted: #d8dde2;
    --awc-gold: #c99a3e;
    --awc-green: #087d6f;
    background: #111820;
    color: #ffffff;
    overflow: hidden;
}

.awc-hero {
    align-items: end;
    display: grid;
    gap: 20px;
    grid-template-columns: 132px minmax(0, 1fr) minmax(300px, 0.78fr);
    padding: clamp(22px, 3.2vw, 42px);
}

.awc-kicker {
    align-self: stretch;
    border-inline-start: 6px solid var(--awc-accent, #c9182b);
    color: #ffffff;
    display: flex;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    padding-inline-start: 14px;
}

.awc-hero h2 {
    color: #ffffff;
    font-size: clamp(28px, 4.4vw, 48px);
    font-weight: 950;
    line-height: 1.02;
    margin: 0 0 10px;
}

.awc-hero p {
    color: var(--awc-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 620px;
}

.awc-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.awc-stats span {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 66px;
    padding: 12px;
}

.awc-stats strong {
    color: var(--awc-gold);
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.awc-tabs,
.awc-match-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 clamp(18px, 3.2vw, 42px) 16px;
}

.awc-tabs button,
.awc-match-filters button {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    min-height: 38px;
    padding: 9px 14px;
}

.awc-tabs button.is-active,
.awc-match-filters button.is-active {
    background: var(--awc-accent, #c9182b);
    border-color: var(--awc-accent, #c9182b);
}

.awc-panel {
    display: none;
}

.awc-panel.is-active {
    display: block;
}

.awc-groups-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 clamp(18px, 3.2vw, 42px) clamp(22px, 3.2vw, 42px);
}

.awc-group {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    min-width: 0;
    overflow: hidden;
}

.awc-group-head {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 52px;
    padding: 13px;
}

.awc-group h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.25;
    margin: 0;
}

.awc-group-head span {
    color: var(--awc-gold);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 950;
}

.awc-group table {
    border-collapse: collapse;
    direction: rtl;
    font-size: 13px;
    width: 100%;
}

.awc-group th,
.awc-group td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--awc-muted);
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.awc-group th:first-child,
.awc-group td:first-child {
    min-width: 128px;
    padding-inline-start: 12px;
    text-align: start;
}

.awc-group th {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 900;
}

.awc-group td strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.awc-group tr.is-qualifying .awc-rank {
    background: var(--awc-green);
}

.awc-rank {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 950;
    height: 22px;
    justify-content: center;
    margin-inline-end: 8px;
    width: 22px;
}

.awc-bracket-shell {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 0 clamp(18px, 3.2vw, 42px) clamp(22px, 3.2vw, 42px);
}

.awc-bracket {
    display: grid;
    gap: 14px;
    grid-auto-columns: minmax(210px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.awc-bracket-round {
    min-width: 210px;
}

.awc-bracket-round h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    margin: 0 0 12px;
}

.awc-bracket-matches {
    display: grid;
    gap: 10px;
}

.awc-bracket-match {
    appearance: none;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #ffffff;
    cursor: pointer;
    display: grid;
    gap: 8px;
    min-height: 96px;
    padding: 10px;
    text-align: start;
    width: 100%;
}

.awc-bracket-match.is-active,
.awc-bracket-match:hover {
    border-color: var(--awc-accent, #c9182b);
    box-shadow: inset 4px 0 0 var(--awc-accent, #c9182b);
}

.awc-bracket-match span {
    color: var(--awc-gold);
    font-size: 12px;
    font-weight: 950;
}

.awc-bracket-match strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.3;
}

.awc-bracket-match em {
    color: var(--awc-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.awc-bracket-detail {
    background: #ffffff;
    color: var(--awc-ink);
    min-height: 220px;
    padding: 20px;
}

.awc-bracket-detail span {
    color: var(--awc-accent, #c9182b);
    display: block;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 18px;
}

.awc-bracket-detail h3 {
    color: inherit;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.25;
    margin: 0 0 14px;
}

.awc-bracket-detail p {
    color: #53606b;
    font-weight: 900;
    margin: 0 0 20px;
}

.awc-bracket-detail strong {
    border-top: 2px solid #111820;
    display: block;
    font-size: 18px;
    padding-top: 18px;
}

.awc-match-grid,
.awc-player-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 clamp(18px, 3.2vw, 42px) clamp(22px, 3.2vw, 42px);
}

.awc-match,
.awc-player {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    min-height: 148px;
    padding: 15px;
}

.awc-match.is-hidden {
    display: none;
}

.awc-match-top {
    color: var(--awc-muted);
    display: flex;
    font-size: 12px;
    font-weight: 900;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.awc-teams {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.awc-teams strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
    min-width: 0;
}

.awc-teams em {
    background: var(--awc-accent, #c9182b);
    color: #ffffff;
    font-style: normal;
    font-weight: 950;
    min-width: 54px;
    padding: 8px 10px;
    text-align: center;
}

.awc-match-venue {
    color: var(--awc-gold);
    font-size: 13px;
    font-weight: 900;
    margin-top: 18px;
}

.awc-player span {
    color: var(--awc-gold);
    display: block;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 14px;
}

.awc-player h3 {
    color: inherit;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
    margin: 0 0 12px;
}

.awc-player strong {
    color: #ffffff;
    display: block;
    margin-bottom: 12px;
}

.awc-player p {
    color: var(--awc-muted);
    line-height: 1.7;
    margin: 0;
}

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

    .awc-match-grid,
    .awc-player-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .awc-hero,
    .awc-bracket-shell {
        grid-template-columns: 1fr;
    }

    .awc-stats,
    .awc-match-grid,
    .awc-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .awc-groups-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .awc-hero {
        gap: 18px;
        padding: 24px 16px;
    }

    .awc-kicker {
        min-height: 36px;
    }

    .awc-stats,
    .awc-match-grid,
    .awc-player-grid {
        grid-template-columns: 1fr;
    }

    .awc-groups-grid,
    .awc-bracket-shell,
    .awc-match-grid,
    .awc-player-grid {
        padding-inline: 16px;
    }

    .awc-tabs,
    .awc-match-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-inline: 16px;
        scrollbar-width: none;
    }

    .awc-tabs::-webkit-scrollbar,
    .awc-match-filters::-webkit-scrollbar {
        display: none;
    }

    .awc-tabs button,
    .awc-match-filters button {
        min-width: max-content;
    }

    .awc-group {
        overflow-x: auto;
    }

    .awc-bracket-detail {
        min-height: 180px;
    }
}
