.hmg-wc-results {
    --wc-ink: #101820;
    --wc-ink-soft: #33424d;
    --wc-muted: #6b7884;
    --wc-panel: #ffffff;
    --wc-panel-soft: #f6f8f9;
    --wc-line: rgba(16, 24, 32, 0.1);
    --wc-line-strong: rgba(16, 24, 32, 0.18);
    --wc-green: #0c7a6f;
    --wc-navy: #101820;
    --wc-gold: #d8a63a;
    --wc-red: #c03546;
    --wc-shadow: 0 20px 50px rgba(16, 24, 32, 0.1);
    --wc-shadow-soft: 0 12px 30px rgba(16, 24, 32, 0.07);
    color: var(--wc-ink);
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px);
    font-family: inherit;
    direction: ltr;
    text-align: left;
    overflow: hidden;
}

.hmg-wc-results,
.hmg-wc-results * {
    box-sizing: border-box;
    word-break: normal;
}

.hmg-wc-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: clamp(24px, 4vw, 54px);
    align-items: end;
    min-height: clamp(280px, 38vw, 430px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: clamp(24px, 5vw, 56px);
    background:
        linear-gradient(115deg, rgba(9, 16, 23, 0.96) 0%, rgba(15, 73, 72, 0.9) 52%, rgba(10, 24, 31, 0.78) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1500' height='700' viewBox='0 0 1500 700'%3E%3Crect width='1500' height='700' fill='%23101820'/%3E%3Cpath d='M0 500c172-74 333-87 514-42 215 54 414 24 594-55 145-63 258-82 392-44v341H0z' fill='%230c7a6f' opacity='.68'/%3E%3Cpath d='M835 0h665v700H835z' fill='%23d8a63a' opacity='.08'/%3E%3Ccircle cx='1165' cy='188' r='118' fill='%23d8a63a' opacity='.9'/%3E%3Cpath d='M1124 112l98 35 35 98-35 98-98 35-98-35-35-98 35-98z' fill='none' stroke='%23fff' stroke-width='11' opacity='.42'/%3E%3Cpath d='M112 140h560M112 205h430M112 270h330' stroke='%23fff' stroke-width='16' opacity='.08'/%3E%3Cpath d='M960 520h420M1010 575h300' stroke='%23fff' stroke-width='14' opacity='.11'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    box-shadow: var(--wc-shadow);
    color: #ffffff;
}

.hmg-wc-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(0deg, rgba(7, 14, 20, 0.45), rgba(7, 14, 20, 0));
    pointer-events: none;
}

.hmg-wc-hero > * {
    position: relative;
    z-index: 1;
}

.hmg-wc-kicker,
.hmg-wc-section__head span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hmg-wc-kicker {
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    padding: 8px 13px;
    color: #ffe39a;
    background: rgba(255, 255, 255, 0.1);
}

.hmg-wc-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 1;
    overflow-wrap: normal;
    white-space: normal;
}

.hmg-wc-hero p {
    max-width: 660px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.6;
}

.hmg-wc-next {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hmg-wc-next span,
.hmg-wc-next em {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-style: normal;
}

.hmg-wc-next span {
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hmg-wc-next strong {
    display: block;
    margin: 12px 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
}

.hmg-wc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: -32px clamp(12px, 3vw, 34px) 42px;
    position: relative;
    z-index: 2;
}

.hmg-wc-stats div {
    border: 1px solid var(--wc-line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--wc-shadow-soft);
}

.hmg-wc-stats span {
    display: block;
    color: var(--wc-muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.hmg-wc-stats strong {
    display: block;
    margin-top: 7px;
    color: var(--wc-ink);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1;
}

.hmg-wc-section {
    margin: 48px 0;
}

.hmg-wc-tabs {
    margin-top: 36px;
}

.hmg-wc-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hmg-wc-tab-nav {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 5px;
    width: min(100%, 640px);
    border: 1px solid var(--wc-line);
    border-radius: 8px;
    padding: 5px;
    background: #ffffff;
    box-shadow: var(--wc-shadow-soft);
    direction: ltr;
}

.hmg-wc-tab-nav label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 7px;
    padding: 9px 12px;
    color: var(--wc-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 850;
    text-align: center;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.hmg-wc-tab-nav label:hover {
    color: var(--wc-ink);
    background: var(--wc-panel-soft);
}

.hmg-wc-tab-panel {
    display: none;
}

#hmg-wc-tab-groups:checked ~ .hmg-wc-tab-nav label[for="hmg-wc-tab-groups"],
#hmg-wc-tab-bracket:checked ~ .hmg-wc-tab-nav label[for="hmg-wc-tab-bracket"],
#hmg-wc-tab-matches:checked ~ .hmg-wc-tab-nav label[for="hmg-wc-tab-matches"] {
    background: var(--wc-navy);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.16);
}

#hmg-wc-tab-groups:checked ~ .hmg-wc-panel-groups,
#hmg-wc-tab-bracket:checked ~ .hmg-wc-panel-bracket,
#hmg-wc-tab-matches:checked ~ .hmg-wc-panel-matches {
    display: block;
}

.hmg-wc-section__head {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.hmg-wc-section__head span {
    padding: 7px 11px;
    background: rgba(216, 166, 58, 0.16);
    color: #7b5a11;
}

.hmg-wc-section__head h2 {
    margin: 0;
    color: var(--wc-ink);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.05;
}

.hmg-wc-section__head p {
    max-width: 720px;
    margin: 0;
    color: var(--wc-muted);
    line-height: 1.55;
}

.hmg-wc-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.hmg-wc-match-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
}

.hmg-wc-group,
.hmg-wc-match,
.hmg-wc-bracket-match {
    border: 1px solid var(--wc-line);
    border-radius: 8px;
    background: var(--wc-panel);
    box-shadow: var(--wc-shadow-soft);
}

.hmg-wc-group {
    overflow: hidden;
}

.hmg-wc-group header {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    background: linear-gradient(135deg, #101820, #17343a);
    color: #ffffff;
}

.hmg-wc-group header span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(216, 166, 58, 0.18);
    color: #ffe39a;
    font-size: 0.95rem;
    font-weight: 850;
}

.hmg-wc-group header strong {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 750;
}

.hmg-wc-group__slots {
    display: grid;
    gap: 10px;
    padding: 18px 18px 8px;
}

.hmg-wc-group__slot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    border: 1px solid var(--wc-line-strong);
    border-radius: 8px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #ffffff, #fbfcfc);
}

.hmg-wc-group h3 {
    margin: 18px 18px 10px;
    color: var(--wc-ink);
    font-size: 0.95rem;
    font-weight: 850;
}

.hmg-wc-slot-empty {
    color: var(--wc-muted);
}

.hmg-wc-group table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
}

.hmg-wc-group th,
.hmg-wc-group td {
    border: 0;
    border-top: 1px solid var(--wc-line);
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
}

.hmg-wc-group th {
    background: var(--wc-panel-soft);
    color: var(--wc-muted);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hmg-wc-group th:first-child,
.hmg-wc-group td:first-child {
    text-align: left;
    width: 42%;
    min-width: 130px;
}

.hmg-wc-group tbody tr:first-child td {
    background: rgba(216, 166, 58, 0.08);
}

.hmg-wc-group tbody tr:last-child td {
    border-bottom: 0;
}

.hmg-wc-team {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    color: var(--wc-ink);
    font-weight: 850;
    text-align: left;
    direction: ltr;
}

.hmg-wc-team__mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32), 0 8px 18px rgba(16, 24, 32, 0.14);
}

.hmg-wc-team__name {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    color: var(--wc-ink);
    font-size: 0.9rem;
    line-height: 1.2;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
}

.hmg-wc-group__slot .hmg-wc-team__name {
    font-size: 0.92rem;
}

.hmg-wc-bracket {
    display: grid;
    gap: 22px;
    overflow: visible;
    border: 1px solid var(--wc-line);
    border-radius: 8px;
    padding: clamp(12px, 2vw, 18px);
    background:
        linear-gradient(90deg, rgba(12, 122, 111, 0.05), rgba(216, 166, 58, 0.05)),
        var(--wc-panel-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hmg-wc-bracket__round {
    width: 100%;
    display: block;
    border: 1px solid var(--wc-line);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.74);
}

.hmg-wc-bracket__round summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border-radius: 8px;
    padding: 13px 14px;
    background: linear-gradient(135deg, var(--wc-navy), #17343a);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 850;
    box-shadow: var(--wc-shadow-soft);
    cursor: pointer;
    list-style: none;
}

.hmg-wc-bracket__round summary::-webkit-details-marker {
    display: none;
}

.hmg-wc-bracket__round summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: #ffe39a;
    font-size: 1.2rem;
    line-height: 1;
}

.hmg-wc-bracket__round[open] summary::after {
    content: "-";
}

.hmg-wc-bracket__round summary span {
    min-width: 0;
}

.hmg-wc-bracket__round summary small {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.hmg-wc-bracket__round:not([open]) {
    padding-bottom: 12px;
}

.hmg-wc-bracket__matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
}

.hmg-wc-bracket-match {
    position: relative;
    min-width: 0;
    padding: 12px;
    box-shadow: 0 12px 24px rgba(16, 24, 32, 0.08);
}

.hmg-wc-bracket-match::after {
    display: none;
}

.hmg-wc-bracket-match__teams {
    display: grid;
    gap: 7px;
}

.hmg-wc-bracket-match__teams b {
    display: inline-grid;
    place-items: center;
    width: 100%;
    min-height: 32px;
    border-radius: 8px;
    background: rgba(216, 166, 58, 0.14);
    color: #7b5a11;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hmg-wc-bracket-team {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 7px;
    background: #ffffff;
}

.hmg-wc-bracket-team--winner {
    border-color: rgba(12, 122, 111, 0.28);
    background: rgba(12, 122, 111, 0.08);
    color: var(--wc-green);
    box-shadow: inset 3px 0 0 var(--wc-green);
}

.hmg-wc-bracket-team--winner .hmg-wc-team__name {
    color: var(--wc-green);
}

.hmg-wc-match {
    position: relative;
    overflow: hidden;
    padding: 18px;
}

.hmg-wc-match::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--wc-green);
}

.hmg-wc-match--live::before {
    background: var(--wc-red);
}

.hmg-wc-match--finished::before {
    background: var(--wc-gold);
}

.hmg-wc-match__top,
.hmg-wc-match__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--wc-muted);
    font-size: 0.86rem;
}

.hmg-wc-match__top strong {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(12, 122, 111, 0.11);
    color: var(--wc-green);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hmg-wc-match--live .hmg-wc-match__top strong {
    background: rgba(192, 53, 70, 0.12);
    color: var(--wc-red);
}

.hmg-wc-scoreline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    margin: 24px 0;
}

.hmg-wc-scoreline > .hmg-wc-team:last-child {
    justify-content: flex-end;
    text-align: right;
}

.hmg-wc-scoreline b {
    display: inline-grid;
    place-items: center;
    min-width: 72px;
    min-height: 52px;
    border-radius: 8px;
    background: var(--wc-navy);
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hmg-wc-prediction {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid rgba(12, 122, 111, 0.16);
    border-radius: 8px;
    padding: 11px 12px;
    background: linear-gradient(135deg, rgba(12, 122, 111, 0.1), rgba(216, 166, 58, 0.1));
    color: var(--wc-green);
}

.hmg-wc-prediction__head,
.hmg-wc-prediction__split {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.hmg-wc-prediction__head span {
    color: var(--wc-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hmg-wc-prediction__head strong {
    text-align: right;
}

.hmg-wc-probability {
    display: flex;
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(16, 24, 32, 0.08);
}

.hmg-wc-probability span,
.hmg-wc-probability b {
    display: block;
    min-width: 2px;
}

.hmg-wc-probability span {
    background: var(--wc-green);
}

.hmg-wc-probability b {
    background: var(--wc-gold);
}

.hmg-wc-prediction__split {
    color: var(--wc-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.hmg-wc-bracket .hmg-wc-prediction {
    margin-top: 10px;
    gap: 8px;
    border-color: var(--wc-line);
    padding: 10px;
    background: #ffffff;
    color: var(--wc-ink);
}

.hmg-wc-bracket .hmg-wc-prediction__head {
    display: grid;
    gap: 3px;
}

.hmg-wc-bracket .hmg-wc-prediction__head strong {
    color: var(--wc-green);
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
}

.hmg-wc-bracket .hmg-wc-probability {
    height: 6px;
}

.hmg-wc-empty {
    margin: 0;
    border: 1px dashed var(--wc-line-strong);
    border-radius: 8px;
    padding: 24px;
    color: var(--wc-muted);
    background: var(--wc-panel-soft);
}

@media (max-width: 920px) {
    .hmg-wc-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hmg-wc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -22px;
    }
}

@media (max-width: 680px) {
    .hmg-wc-hero h1 {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .hmg-wc-hero p {
        font-size: 0.98rem;
    }

    .hmg-wc-section__head h2 {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }
}

@media (max-width: 760px) {
    .hmg-wc-results {
        padding: 12px;
    }

    .hmg-wc-hero {
        padding: 28px;
    }

    .hmg-wc-stats {
        grid-template-columns: 1fr 1fr;
        margin-left: 8px;
        margin-right: 8px;
    }

    .hmg-wc-groups,
    .hmg-wc-match-list {
        grid-template-columns: 1fr;
    }

    .hmg-wc-tab-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hmg-wc-scoreline {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hmg-wc-scoreline > .hmg-wc-team:last-child {
        justify-content: flex-start;
        text-align: left;
    }

    .hmg-wc-scoreline b {
        width: 100%;
    }

    .hmg-wc-bracket {
        padding: 12px;
    }

    .hmg-wc-bracket__round {
        margin-top: 0 !important;
    }

    .hmg-wc-bracket__matches {
        grid-template-columns: 1fr;
    }
}
