.ohc-nutab {
    --ohc-primary: var(--e-global-color-primary, #111111);
    --ohc-accent: var(--e-global-color-accent, #111111);
    --ohc-text: var(--e-global-color-text, #222222);
    --ohc-muted: #6f6f6f;
    --ohc-surface: #ffffff;
    --ohc-soft: #f5f5f5;
    --ohc-line: rgba(17, 17, 17, 0.11);
    --ohc-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
    --ohc-radius: 12px;
    color: var(--ohc-text);
    font-family: inherit;
    line-height: 1.45;
    max-width: 100%;
    width: 100%;
}

.ohc-nutab *,
.ohc-nutab *::before,
.ohc-nutab *::after {
    box-sizing: border-box;
}

.ohc-nutab-section {
    margin: 0 0 clamp(34px, 7vw, 52px);
    padding: 0;
}

.ohc-nutab-section:last-child {
    margin-bottom: 0;
}

.ohc-nutab-heading {
    align-items: center;
    color: var(--ohc-primary);
    display: flex;
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-size: clamp(18px, 4vw, 22px);
    font-weight: var(--e-global-typography-primary-font-weight, 700);
    gap: 10px;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.ohc-nutab-heading::before {
    background: var(--ohc-accent);
    content: "";
    flex: 0 0 4px;
    height: 24px;
}

.ohc-nutab-card {
    background: var(--ohc-surface);
    border: 1px solid var(--ohc-line);
    border-radius: var(--ohc-radius);
    box-shadow: var(--ohc-shadow);
    overflow: hidden;
    width: 100%;
}

.ohc-nutab-next-card {
    padding: clamp(24px, 6vw, 34px) clamp(16px, 5vw, 28px) 20px;
}

.ohc-nutab-next-meta {
    margin: 0 0 28px;
    text-align: center;
}

.ohc-nutab-next-competition {
    color: var(--ohc-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.35;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ohc-nutab-next-date {
    color: var(--ohc-primary);
    font-size: clamp(17px, 4vw, 20px);
    font-weight: 700;
    line-height: 1.3;
}

.ohc-nutab-versus {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    margin: 0 auto 30px;
    max-width: 440px;
}

.ohc-nutab-team {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

.ohc-nutab-logo-wrap {
    align-items: center;
    display: flex;
    height: 74px;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    width: 88px;
}

.ohc-nutab-team-logo {
    height: 70px !important;
    max-width: 84px;
    object-fit: contain;
    position: relative;
    width: auto;
    z-index: 2;
}

.ohc-nutab-logo-fallback {
    align-items: center;
    background: var(--ohc-soft);
    border: 1px solid var(--ohc-line);
    border-radius: 50%;
    color: var(--ohc-muted);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    height: 58px;
    justify-content: center;
    position: absolute;
    width: 58px;
    z-index: 1;
}

.ohc-nutab-team-name {
    color: var(--ohc-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 36px;
    overflow-wrap: anywhere;
}

.ohc-nutab-versus-middle {
    align-self: center;
    color: var(--ohc-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding-bottom: 26px;
    text-align: center;
    text-transform: uppercase;
}

.ohc-nutab-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ohc-nutab-button {
    align-items: center;
    appearance: none;
    background: var(--ohc-primary);
    border: 1px solid var(--ohc-primary);
    border-radius: 3px;
    color: #ffffff !important;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    width: 100%;
}

.ohc-nutab-button:hover,
.ohc-nutab-button:focus-visible {
    background: transparent;
    color: var(--ohc-primary) !important;
    transform: translateY(-1px);
}

.ohc-nutab-button:focus-visible {
    outline: 2px solid var(--ohc-accent);
    outline-offset: 3px;
}

.ohc-nutab-live-button[hidden] {
    display: none !important;
}

.ohc-nutab-live-button.is-live {
    background: #c40000;
    border-color: #c40000;
}

.ohc-nutab-live-button.is-live:hover,
.ohc-nutab-live-button.is-live:focus-visible {
    background: transparent;
    color: #c40000 !important;
}

.ohc-nutab-live-dot {
    animation: ohc-nutab-pulse 1.5s infinite;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
    display: inline-block;
    height: 8px;
    margin-right: 8px;
    width: 8px;
}

@keyframes ohc-nutab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
    70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ohc-nutab-upcoming-card {
    padding: 0;
}

.ohc-nutab-upcoming-list {
    display: grid;
    margin: 0;
}

.ohc-nutab-upcoming-item {
    align-items: center;
    background: var(--ohc-surface);
    border-bottom: 1px solid var(--ohc-line);
    display: grid;
    gap: 14px;
    grid-template-columns: 42px minmax(0, 1fr);
    margin: 0 !important;
    min-height: 78px;
    padding: 15px 18px;
}

.ohc-nutab-upcoming-item:last-child {
    border-bottom: 0;
}

.ohc-nutab-ticket-icon {
    align-items: center;
    background: var(--ohc-soft);
    border-radius: 50%;
    color: var(--ohc-primary);
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.ohc-nutab-ticket-icon svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 23px;
}

.ohc-nutab-upcoming-date {
    color: var(--ohc-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.ohc-nutab-upcoming-match {
    color: var(--ohc-muted);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ohc-nutab-upcoming-card > .ohc-nutab-button {
    border: 0;
    border-radius: 0 0 calc(var(--ohc-radius) - 1px) calc(var(--ohc-radius) - 1px);
    min-height: 48px;
}

.ohc-nutab-table-card {
    padding: 0;
}

.ohc-nutab-table-header,
.ohc-nutab-table-row {
    align-items: center;
    display: grid;
    gap: 4px;
    grid-template-columns: 34px minmax(0, 1fr) repeat(3, 38px);
}

.ohc-nutab-table-header {
    background: var(--ohc-soft);
    border-bottom: 1px solid var(--ohc-line);
    color: var(--ohc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.045em;
    min-height: 38px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.ohc-nutab-table-header-team {
    padding-left: 4px;
}

.ohc-nutab-table-header-stat,
.ohc-nutab-position,
.ohc-nutab-stat {
    text-align: center;
}

.ohc-nutab-table {
    display: grid;
}

.ohc-nutab-table-row {
    background: var(--ohc-surface);
    border-bottom: 1px solid var(--ohc-line);
    font-size: 13px;
    min-height: 48px;
    padding: 9px 12px;
    position: relative;
}

.ohc-nutab-table-row:last-child {
    border-bottom: 0;
}

.ohc-nutab-table-row.is-own-team {
    background: var(--ohc-soft);
    font-weight: 700;
}

.ohc-nutab-table-row.is-own-team::before {
    background: var(--ohc-accent);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.ohc-nutab-position {
    color: var(--ohc-muted);
}

.ohc-nutab-table-team {
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: anywhere;
    padding-left: 4px;
}

.ohc-nutab-stat {
    color: var(--ohc-primary);
    font-weight: 700;
}

.ohc-nutab-empty {
    color: var(--ohc-muted);
    font-size: 14px;
    margin: 0;
    padding: 24px 18px;
    text-align: center;
}

.ohc-nutab-admin-notice {
    background: #fff3cd;
    border-left: 4px solid #dba617;
    margin: 12px 0;
    padding: 12px 14px;
}

@media (min-width: 600px) {
    .ohc-nutab-upcoming-item {
        padding-left: 22px;
        padding-right: 22px;
    }

    .ohc-nutab-table-header,
    .ohc-nutab-table-row {
        grid-template-columns: 42px minmax(0, 1fr) repeat(3, 48px);
    }

    .ohc-nutab-table-header,
    .ohc-nutab-table-row {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 380px) {
    .ohc-nutab-next-card {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ohc-nutab-versus {
        gap: 5px;
        grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    }

    .ohc-nutab-logo-wrap {
        height: 64px;
        width: 72px;
    }

    .ohc-nutab-team-logo {
        height: 60px;
        max-width: 68px;
    }

    .ohc-nutab-team-name {
        font-size: 13px;
    }

    .ohc-nutab-upcoming-item {
        gap: 10px;
        grid-template-columns: 36px minmax(0, 1fr);
        padding-left: 12px;
        padding-right: 12px;
    }

    .ohc-nutab-ticket-icon {
        height: 34px;
        width: 34px;
    }

    .ohc-nutab-table-header,
    .ohc-nutab-table-row {
        grid-template-columns: 28px minmax(0, 1fr) repeat(3, 31px);
        padding-left: 8px;
        padding-right: 8px;
    }

    .ohc-nutab-table-row {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ohc-nutab-button,
    .ohc-nutab-live-dot {
        animation: none;
        transition: none;
    }
}
