.wc26 {
    --wc26-primary: #e31b23;
    --wc26-gold: #ffb000;
    --wc26-red-dark: #7f0909;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    margin: 24px auto;
    max-width: 1220px;
}

.wc26 * {
    box-sizing: border-box;
}

.wc26-hero {
    align-items: center;
    background: linear-gradient(135deg, #19080a 0%, #7f0909 48%, #e31b23 78%, #ffb000 145%);
    border: 1px solid rgba(255, 176, 0, 0.28);
    border-radius: 14px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 26px 28px;
    position: relative;
}

.wc26-hero::after {
    background: radial-gradient(circle, rgba(255, 207, 92, 0.32), transparent 62%);
    content: "";
    height: 220px;
    position: absolute;
    right: -70px;
    top: -80px;
    width: 220px;
}

.wc26-kicker {
    color: #ffe08a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.wc26-hero h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 10px;
}

.wc26-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    max-width: 760px;
}

.wc26-statbox {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 224, 138, 0.36);
    border-radius: 10px;
    min-width: 150px;
    padding: 18px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.wc26-statbox strong {
    color: #fff;
    display: block;
    font-size: 42px;
    line-height: 1;
}

.wc26-statbox span {
    color: #ffe08a;
    font-weight: 800;
}

.wc26-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.wc26-tabs a {
    background: #fff8e6;
    border: 1px solid #ffd27a;
    border-radius: 8px;
    color: #9b1c1f;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 900;
    padding: 9px 12px;
    text-decoration: none;
}

.wc26-tabs a.is-active,
.wc26-tabs a:hover {
    background: linear-gradient(135deg, var(--wc26-primary), #ff4d00);
    border-color: var(--wc26-primary);
    color: #fff;
}

.wc26-layout {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.wc26-main,
.wc26-card,
.wc26-single {
    background: #fff;
    border: 1px solid #f0d4bd;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(127, 9, 9, 0.1);
}

.wc26-main {
    overflow: hidden;
}

.wc26-group {
    border-bottom: 1px solid #e5e7eb;
}

.wc26-group:last-child {
    border-bottom: 0;
}

.wc26-group-title {
    background: linear-gradient(135deg, var(--wc26-primary), #f45b00);
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    padding: 13px 18px;
}

.wc26-table-head,
.wc26-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 145px minmax(260px, 1fr) 120px 130px;
}

.wc26-table-head {
    background: #fff2d2;
    color: #8b160d;
    font-size: 13px;
    font-weight: 900;
    padding: 11px 16px;
    text-transform: uppercase;
}

.wc26-row {
    align-items: center;
    border-top: 1px solid #f1e2d5;
    min-height: 78px;
    padding: 12px 16px;
}

.wc26-row:nth-child(even) {
    background: #fffaf2;
}

.wc26-row[data-status="finished"] {
    background: #fffdf8;
}

.wc26-time strong {
    color: #111827;
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.wc26-time span {
    background: #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.wc26-time small {
    color: #94a3b8;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-top: 6px;
}

.wc26-row[data-status="finished"] .wc26-time span {
    background: #dcfce7;
    color: #166534;
}

.wc26-row[data-status="live"] .wc26-time span {
    background: #fee2e2;
    color: #991b1b;
}

.wc26-teams {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wc26-team {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-width: 145px;
}

.wc26-team img {
    border: 1px solid #e9d5b0;
    border-radius: 4px;
    height: 25px;
    object-fit: cover;
    width: 38px;
}

.wc26-team strong {
    color: #374151;
    font-size: 15px;
    font-weight: 900;
}

.wc26-flag-empty {
    align-items: center;
    background: #fff7ed;
    border: 1px dashed #fb923c;
    border-radius: 8px;
    color: #c2410c;
    display: inline-flex;
    font-size: 17px;
    font-weight: 950;
    height: 28px;
    justify-content: center;
    width: 40px;
}

.wc26-seed {
    color: #94a3b8;
    display: block;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
}

.wc26-vs {
    background: #fff4d6;
    border: 1px solid #ffd27a;
    border-radius: 999px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 950;
    padding: 6px 8px;
}

.wc26-score {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #111827;
    display: inline-flex;
    font-size: 22px;
    font-weight: 950;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 7px 10px;
}

.wc26-score em {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
}

.wc26-ai-btn {
    background: linear-gradient(135deg, #e31b23, #ff5a00);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(227, 27, 35, 0.24);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    min-height: 40px;
    padding: 0 16px;
    white-space: nowrap;
}

.wc26-ai-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.wc26-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 18px;
}

.wc26-card {
    padding: 18px;
}

.wc26-card h3 {
    color: #111827;
    font-size: 18px;
    margin: 0 0 14px;
}

.wc26-mini-table {
    border-top: 1px solid #eef2f7;
    padding: 12px 0;
}

.wc26-mini-table:first-of-type {
    border-top: 0;
}

.wc26-mini-table > strong {
    color: var(--wc26-primary);
    display: block;
    margin-bottom: 8px;
}

.wc26-mini-table div,
.wc26-status div {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.wc26-mini-table span,
.wc26-status span {
    color: #64748b;
    font-weight: 750;
}

.wc26-status b {
    color: var(--wc26-primary);
    font-size: 28px;
}

.wc26-empty {
    color: #64748b;
    font-weight: 800;
    padding: 24px;
}

.wc26-single {
    display: block;
    margin: 18px 0;
    overflow: hidden;
}

.wc26-row-single {
    grid-template-columns: 160px minmax(260px, 1fr) 120px 140px;
}

.wc26-modal {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 999999;
}

.wc26-modal.is-open {
    display: flex;
}

.wc26-dialog {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.42);
    max-height: 88vh;
    max-width: 780px;
    overflow: hidden;
    width: min(780px, 100%);
}

.wc26-dialog-head {
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
    color: #fff;
    padding: 34px 70px 24px;
    position: relative;
    text-align: center;
}

.wc26-dialog-title {
    font-size: 16px;
    font-weight: 950;
    margin: 0 44px 14px;
    text-transform: uppercase;
}

.wc26-dialog-match {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.wc26-dialog-match img {
    border-radius: 4px;
    height: 26px;
    width: 40px;
}

.wc26-dialog-flag-empty {
    align-items: center;
    background: rgba(255, 255, 255, 0.17);
    border: 1px dashed rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    display: inline-flex;
    font-size: 18px;
    font-weight: 950;
    height: 28px;
    justify-content: center;
    width: 42px;
}

.wc26-dialog-team {
    display: grid;
    font-size: 22px;
    font-weight: 950;
    gap: 3px;
    line-height: 1.15;
}

.wc26-dialog-team small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 850;
}

.wc26-dialog-vs {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    padding: 8px 10px;
}

.wc26-dialog-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 800;
    margin-top: 10px;
}

.wc26-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 48px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 48px;
}

.wc26-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.wc26-dialog-body {
    max-height: calc(88vh - 145px);
    overflow: auto;
    padding: 24px 26px;
}

.wc26-loading {
    display: grid;
    gap: 16px;
}

.wc26-loading-clean {
    align-items: center;
    justify-items: center;
    min-height: 170px;
    padding: 18px;
    text-align: center;
}

.wc26-loading-clean .wc26-spin {
    height: 42px;
    width: 42px;
}

.wc26-loading-clean strong {
    color: #111827;
    font-size: 18px;
    font-weight: 950;
}

.wc26-loading-clean p {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.wc26-step {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 17px;
    font-weight: 750;
    gap: 12px;
}

.wc26-hard-error {
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    color: #9a3412;
    flex-direction: column;
    line-height: 1.5;
    padding: 14px 16px;
}

.wc26-hard-error span {
    font-size: 14px;
    font-weight: 800;
}

.wc26-spin {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 25px;
    justify-content: center;
    width: 25px;
}

.wc26-spin {
    border: 3px solid #e9d5ff;
    border-top-color: #7c3aed;
    animation: wc26-spin 0.85s linear infinite;
}

@keyframes wc26-spin {
    to { transform: rotate(360deg); }
}

.wc26-ai-list {
    counter-reset: ai;
    display: grid;
    gap: 15px;
    margin-bottom: 22px;
}

.wc26-ai-item {
    display: grid;
    gap: 12px;
    grid-template-columns: 28px 1fr;
    line-height: 1.55;
}

.wc26-ai-item::before {
    align-items: center;
    background: #ede9fe;
    border-radius: 999px;
    color: #7c3aed;
    content: counter(ai);
    counter-increment: ai;
    display: flex;
    font-size: 13px;
    font-weight: 950;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.wc26-bars {
    border-top: 1px dashed #ddd6fe;
    display: grid;
    gap: 13px;
    padding-top: 18px;
}

.wc26-bar-label {
    display: flex;
    font-weight: 900;
    justify-content: space-between;
}

.wc26-track {
    background: #eef2f7;
    border-radius: 999px;
    height: 11px;
    overflow: hidden;
}

.wc26-fill {
    border-radius: inherit;
    display: block;
    height: 100%;
}

.wc26-ai-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.wc26-ai-result {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.wc26-ai-result.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wc26-api-error {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 16px;
    padding: 12px 14px;
}

.wc26-ai-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.wc26-ai-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.wc26-ai-card span {
    color: #6d28d9;
    display: block;
    font-size: 22px;
    font-weight: 950;
}

.wc26-note {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    margin: 18px 0 0;
    text-align: center;
}

@media (max-width: 980px) {
    .wc26-layout {
        grid-template-columns: 1fr;
    }

    .wc26-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .wc26-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .wc26-table-head {
        display: none;
    }

    .wc26-row,
    .wc26-row-single {
        align-items: flex-start;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 18px 16px;
    }

    .wc26-time {
        grid-column: 1;
        grid-row: 1;
    }

    .wc26-actions {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        justify-self: end;
        min-width: max-content;
    }

    .wc26-teams {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .wc26-score {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-start;
        width: 100%;
    }

    .wc26-ai-btn {
        font-size: 12px;
        min-height: 44px;
        padding: 0 14px;
    }

    .wc26-dialog {
        border-radius: 18px;
    }

    .wc26-dialog-head {
        padding: 58px 18px 22px;
    }

    .wc26-close {
        height: 42px;
        right: 12px;
        top: 12px;
        width: 42px;
    }

    .wc26-dialog-body {
        max-height: calc(88vh - 138px);
        padding: 20px 18px;
    }

    .wc26-dialog-team {
        font-size: 19px;
    }

    .wc26-ai-cards {
        grid-template-columns: 1fr;
    }
}
