/* Keep the supplied chat isolated to the existing sidebar slot. */
#xlc-chat-widget { position:relative; width:100%; height:100%; min-height:400px; color:#e5e7eb; background:#272c2c; overflow:hidden; }
#xlc-chat-widget .cw-root { position:relative!important; inset:auto!important; width:100%!important; max-width:none!important; height:100%!important; }
#xlc-chat-widget > p { padding:20px; }
[data-direct-notice] { padding:12px 16px; color:#d8dfdf; background:#2e3434; border-radius:8px; }
[data-direct-shell="loading"] .live-match-summary__numbers,
[data-direct-shell="loading"] .live-match-summary__status,
[data-direct-shell="loading"] .live-match-summary__quick-stats { visibility:hidden; }
.featured-team .team-logo--ticker { width:26px; height:26px; object-fit:contain; }
/* Match the sports tables' existing team-mark dimensions for direct API logos. */
.sports-data-page .sports-match-row__team .team-logo { flex:0 0 34px; width:34px; height:34px; object-fit:contain; }
#xlc-chat-widget .chat-message { overflow-wrap:anywhere; }
@media (max-width:980px) { #xlc-chat-widget { height:500px; min-height:400px; max-height:70dvh; } }

/* Keep simulation and its loading state within the same 16:9 live slot. */
.live-player-main .live-player-simulation {
    width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9;
    padding: 0; margin: 0; overflow: hidden; position: relative;
}
.live-player-main .xlc-cola-simulation .match-simulation {
    position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
    margin: 0; padding: 0; overflow: hidden;
}
.live-player-main .xlc-cola-simulation .match-simulation iframe {
    position: absolute; top: 0; left: 0; display: block;
    width: 800px; min-width: 800px; max-width: none;
    height: 546px; min-height: 546px; max-height: none;
    margin: 0; padding: 0; border: 0; transform-origin: top left;
}
.live-match-sidebar .xlc-context-retry {
    margin: 12px;
    padding: 8px 14px;
    border: 1px solid #4b7b58;
    border-radius: 5px;
    background: #303737;
    color: #65f08a;
    font: inherit;
    cursor: pointer;
}

/* Provider logos remain inside the existing summary and commentator frames. */
.live-match-summary__sport { overflow: hidden; }
.live-match-summary__sport > img { display:block; width:74%; height:74%; object-fit:contain; }
.remote-match-commentator > [data-commentator-avatar] { display:block; overflow:hidden; }
.remote-match-commentator > [data-commentator-avatar] > img { display:block; width:100%; height:100%; object-fit:cover; }
