.events-table {
    color: #FFF;
    font-size: 1.25rem;
}

.events-table td,
.events-table th {
    vertical-align: middle;
}

.events-table img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50% !important;
    vertical-align: middle;
    margin: 0 15px;
}

/* MOBILE STACK LAYOUT */
@media screen and (max-width: 768px) {

    .events-table {
        border: 0;
        display: flex;
        justify-content: center;
        width: 100%;
        overflow-x: hidden !important;
    }

    .events-table thead {
        display: none;
    }

    .events-table tr {
        display: block;
        margin-bottom: 15px;
        background: #1984c3;
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        width: 100%;
    }

    .events-table td {
        display: inline-flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        flex-direction: column;
    }

    .events-table td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
        color: #444;
        padding-right: 10px;
    }

    .events-table td > a,
    .events-table td > span,
    .events-table td > div {
        flex: 2;
        text-align: right;
        white-space: normal !important;
        word-break: break-word;
    }

    /* TEAM LOGOS */
    .events-table .team-logo {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }

    .events-table .team-logo img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        margin-left: 4px;
        flex-shrink: 0;
    }

    /* Global word wrapping */
    .events-table,
    .events-table * {
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 1rem;
    }
    
    span.events-vs {
        display: none;
    }
    
    .events-table img {
        margin: 5px 0;
    }
}
