/* Event gallery and privacy-conscious embeds; scoped to individual match events. */
.asbge-event .asb500-event-media{margin:14px 0 12px;display:grid;gap:14px;min-width:0}
.asb500-event-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:9px;max-width:750px}
.asb500-event-gallery>a{display:block;overflow:hidden;border-radius:10px;background:#f1f4f6;aspect-ratio:4/3;border:1px solid #e3e8ed}
.asb500-event-gallery img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.asb500-event-gallery>a:hover img{transform:scale(1.03)}
.asb500-event-embed{border:1px solid #e1e5ec;border-radius:12px;padding:13px 14px;max-width:650px;min-width:0;background:#fff;color:#27323e}
.asb500-event-embed>span{display:block;font-weight:700;font-size:13px;margin-bottom:8px}
.asb500-event-embed-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.asb500-event-embed-actions button{border:0;border-radius:7px;padding:9px 14px;font:inherit;font-size:13px;font-weight:700;color:#fff;background:#174e88;cursor:pointer}
.asb500-event-embed-actions button:hover{background:#0c3a6b}
.asb500-event-embed-actions button:disabled{opacity:.6;cursor:wait}
.asb500-event-embed-actions a{font-size:13px;text-decoration:underline;text-underline-offset:3px}
.asb500-embed-host{min-width:0;margin-top:12px;overflow-wrap:anywhere}
.asb500-embed-host[hidden]{display:none}
.asb500-embed-host blockquote{max-width:100%!important}
@media(max-width:600px){.asb500-event-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.asb500-event-embed{padding:10px}.asb500-event-embed-actions{gap:8px}}
/* Event editor layout, including the Gutenberg iframe and the standalone dashboard. */
.asb500-media-fields{border:1px solid #dbe2e9;border-radius:10px;margin:16px 0;padding:14px;display:grid;gap:9px;min-width:0}
.asb500-media-fields legend{font-size:14px;font-weight:700;padding:0 7px}
.asb500-media-fields>label,.asb500-media-edit label{display:grid;gap:6px;font-weight:600;min-width:0}
.asb500-media-fields textarea,.asb500-media-edit textarea{box-sizing:border-box;width:100%;min-height:60px;resize:vertical;font-family:inherit;font-weight:400}
.asb500-media-fields .description{margin:0;color:#617083}
.asb500-media-fields>button{justify-self:start}
.asb500-media-fields small{color:#5e6775}
.asb500-media-edit{display:grid;gap:10px;margin:10px 0;border-top:1px solid #e0e5eb;padding-top:10px}
.asb500-media-indicator{font-size:12px;color:#52616b;display:block;margin:4px 0}

/* Player occurrences in initial HTML and live lineup refreshes. */
.asb500-player-incidents{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;margin-left:auto;min-width:0}
.asb500-player-badge{display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1;min-width:21px;height:21px;border-radius:6px;background:#f3f5f7;border:1px solid #dce2e8;color:#122334;font-weight:800;vertical-align:middle}
.asb500-player-badge--in{background:#e4f7eb;color:#087e53;border-color:#aee3bf}
.asb500-player-badge--out{background:#fff0ed;color:#a53d2b;border-color:#f0c2b8}
.asb500-player-badge--yellow{background:#fff7d6;border-color:#e9d18b}
.asb500-player-badge--red{background:#fff0ed;border-color:#e1bbb3}
.asbge-player-list li{min-width:0;gap:8px}
.asbge-player-list li>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.asbge-player-list li>.asb500-player-incidents{justify-self:end}
@media(max-width:580px){.asb500-player-incidents{gap:3px}.asb500-player-badge{min-width:19px;height:19px;font-size:12px}}

.asb480-pitch-player .asb500-player-incidents{display:flex;justify-content:center;margin:4px auto 0;gap:2px}
.asb480-pitch-player .asb500-player-badge{min-width:16px;height:16px;font-size:10px;border-radius:4px}
