.ohc-handball {
    --ohc-blue: #1763a1;
    --ohc-dark: #17364d;
    --ohc-border: #dedede;
    --ohc-bg: #ffffff;
    --ohc-bg-soft: #f7f7f7;
    --ohc-text: #1f2933;
    --ohc-muted: #6b7280;
    --ohc-radius: 12px;
    --ohc-shadow: 0 12px 28px rgba(23, 54, 77, 0.07);
    --ohc-logo-size: 72px;
    --ohc-logo-small-size: 28px;

    box-sizing: border-box;
    color: var(--ohc-text);
    font-family: inherit;
    max-width: 100%;
}

.ohc-handball *,
.ohc-handball *::before,
.ohc-handball *::after {
    box-sizing: inherit;
}

.ohc-section {
    margin: 0 0 2.7rem;
}

.ohc-section-title {
    align-items: center;
    color: var(--ohc-blue);
    display: flex;
    font-family: inherit;
    font-size: clamp(1.25rem, 2.7vw, 1.65rem);
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

.ohc-section-title::before {
    background: var(--ohc-dark);
    content: "";
    display: block;
    flex: 0 0 4px;
    height: 1.25em;
    margin-right: 0.65rem;
}

.ohc-card {
    background: var(--ohc-bg);
    border: 1px solid var(--ohc-border);
    border-radius: var(--ohc-radius);
    box-shadow: var(--ohc-shadow);
    overflow: hidden;
}

.ohc-next-match__card {
    padding: clamp(1.6rem, 5vw, 2.25rem) clamp(1rem, 5vw, 1.75rem) 1.25rem;
    text-align: center;
}

.ohc-next-match__competition {
    color: #6d5f5b;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.ohc-next-match__date {
    color: var(--ohc-blue);
    font-size: clamp(1.2rem, 4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
}

.ohc-next-match__teams {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 2rem auto 2.2rem;
    max-width: 560px;
}

.ohc-team-block {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.ohc-team-block__name {
    color: var(--ohc-blue);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ohc-next-match__versus {
    align-items: center;
    color: #705f59;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 0.4rem;
    min-width: 3rem;
}

.ohc-live-badge {
    background: #eef7f4;
    border: 1px solid #9ccdbf;
    border-radius: 999px;
    color: #16745d;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.5rem;
}

.ohc-logo {
    align-items: center;
    display: inline-flex;
    flex: 0 0 var(--ohc-logo-size);
    height: var(--ohc-logo-size);
    justify-content: center;
    max-height: var(--ohc-logo-size);
    max-width: var(--ohc-logo-size);
    object-fit: contain;
    vertical-align: middle;
    width: var(--ohc-logo-size);
}

img.ohc-logo {
    border: 0;
}

.ohc-logo--small {
    --ohc-logo-size: var(--ohc-logo-small-size);
    margin-right: 0.4rem;
}

.ohc-logo--empty {
    background: transparent;
    border: 0;
}

.ohc-button {
    background: var(--ohc-blue);
    border-radius: 3px;
    color: #fff !important;
    display: block;
    font-weight: 800;
    margin: 0 auto;
    max-width: 100%;
    padding: 0.8rem 1rem;
    text-align: center;
    text-decoration: none !important;
    transition: filter 0.15s ease, transform 0.15s ease;
    width: min(390px, 100%);
}

.ohc-button:hover,
.ohc-button:focus-visible {
    filter: brightness(0.92);
}

.ohc-button:active {
    transform: translateY(1px);
}

.ohc-list-card .ohc-button {
    border-radius: 0;
    margin-top: 0;
    width: 100%;
}

.ohc-list-game {
    align-items: flex-start;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 1rem 1.25rem;
}

.ohc-list-game + .ohc-list-game {
    border-top: 1px solid var(--ohc-border);
}

.ohc-list-game__icon {
    align-items: center;
    background: var(--ohc-bg-soft);
    border-radius: 50%;
    display: flex;
    height: 38px;
    justify-content: center;
    position: relative;
    width: 38px;
}

.ohc-list-game__icon::before {
    border: 1.5px solid var(--ohc-blue);
    border-radius: 4px;
    content: "";
    height: 15px;
    width: 18px;
}

.ohc-list-game__icon::after {
    background: var(--ohc-bg-soft);
    border-left: 1.5px solid var(--ohc-blue);
    border-right: 1.5px solid var(--ohc-blue);
    content: "";
    height: 7px;
    position: absolute;
    width: 12px;
}

.ohc-list-game__date {
    color: var(--ohc-blue);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.ohc-list-game__description {
    align-items: center;
    color: var(--ohc-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ohc-list-game__score {
    color: var(--ohc-text);
}

.ohc-table-card {
    box-shadow: none;
}

.ohc-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ohc-table {
    border-collapse: collapse;
    border-spacing: 0;
    color: var(--ohc-text);
    font-size: 0.9rem;
    margin: 0;
    min-width: 680px;
    width: 100%;
}

.ohc-standings-table {
    min-width: 460px;
}

.ohc-table th,
.ohc-table td {
    border: 0;
    border-bottom: 1px solid var(--ohc-border);
    padding: 0.8rem 0.9rem;
    text-align: left;
    vertical-align: middle;
}

.ohc-table thead th {
    background: #f5f5f5;
    color: #625852;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.ohc-table tbody tr:last-child td {
    border-bottom: 0;
}

.ohc-table .ohc-score-cell,
.ohc-table th:nth-last-child(2) {
    font-weight: 800;
}

.ohc-standings-table th:nth-child(n+3),
.ohc-standings-table td:nth-child(n+3) {
    color: #00549a;
    font-weight: 800;
    text-align: center;
}

.ohc-col-position {
    color: #836f63 !important;
    text-align: center !important;
    width: 48px;
}

.ohc-standings__row--own {
    font-weight: 800;
    position: relative;
}

.ohc-standings__row--own td:first-child {
    box-shadow: inset 4px 0 0 var(--ohc-dark);
}

.ohc-row--home {
    background: rgba(23, 99, 161, 0.025);
}

.ohc-participant {
    align-items: center;
    display: inline-flex;
    min-width: 0;
}

.ohc-participant > span:last-child {
    overflow-wrap: anywhere;
}

.ohc-nowrap {
    white-space: nowrap;
}

.ohc-empty {
    color: var(--ohc-muted);
    padding: 1.1rem 1.25rem;
}

@media (max-width: 600px) {
    .ohc-section {
        margin-bottom: 2.3rem;
    }

    .ohc-next-match__teams {
        gap: 0.55rem;
        margin-top: 1.6rem;
    }

    .ohc-next-match__card {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .ohc-logo {
        --ohc-logo-size: 62px;
    }

    .ohc-logo--small {
        --ohc-logo-size: 24px;
    }

    .ohc-team-block__name {
        font-size: 0.9rem;
    }

    .ohc-list-game {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 0.9rem 1rem;
    }
}


/* Optional links */
.ohc-team-block__link,
.ohc-participant-link,
.ohc-inline-participant-link {
    color: inherit;
    text-decoration: none;
}

.ohc-team-block__link {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ohc-participant-link:hover,
.ohc-inline-participant-link:hover,
.ohc-team-block__link:hover .ohc-team-block__name {
    color: var(--ohc-blue);
    text-decoration: underline;
}

.ohc-inline-participant-link {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}
