/* Cabecera estructural: la identidad contiene "Cambiar evento"; la foto es
   su único hermano de cuadrícula. Notificaciones y bottom-nav quedan intactos. */
body[data-pc-app="player"] .pc-player-header-row #topbar .pc-topbar-event:has(>.pc-event-identity),
body[data-pc-app="family-player"] #familyTopbar #familyEventHeader:not([hidden]){
 display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto;
 align-items:center;column-gap:10px;min-width:0;width:100%;margin:0;padding:2px 0;
}
body[data-pc-app="player"] .pc-player-header-row #topbar .pc-topbar-event>.pc-event-identity,
body[data-pc-app="family-player"] #familyTopbar #familyEventHeader>.pc-event-identity{
 grid-column:1;grid-row:1;
 display:flex;flex-direction:column;align-items:flex-start;
 gap:5px;min-width:0;width:100%;max-width:100%;margin:0;
}
body[data-pc-app="player"] #topbar .pc-event-identity>b,
body[data-pc-app="family-player"] #familyEventHeader .pc-event-identity>b{
 display:block;color:var(--pc-user-text,var(--text));line-height:1.25;overflow-wrap:anywhere;
}
body[data-pc-app="player"] .pc-player-header-row #topbar .pc-event-identity>.pc-change-event,
body[data-pc-app="family-player"] #familyTopbar #familyEventHeader .pc-event-identity>.pc-change-event{
 display:inline-flex;align-items:center;justify-content:center;
 align-self:flex-start;width:max-content;max-width:100%;
 min-height:34px;margin-top:3px;padding:7px 11px;border-radius:12px;
 white-space:normal;text-align:center;font-size:11px;line-height:1.2;
}
body[data-pc-app="player"] .pc-player-header-row #topbar .pc-topbar-event>.pc-event-profile-shortcut,
body[data-pc-app="family-player"] #familyTopbar #familyEventHeader>.pc-event-profile-shortcut{
 grid-column:2;grid-row:1;justify-self:end;align-self:center;
 display:grid;place-items:center;position:relative;overflow:hidden;
 width:44px;height:44px;min-width:44px;max-width:44px;min-height:44px;
 flex:none;box-sizing:border-box;margin:0;padding:0;
 border:1px solid var(--pc-user-border,rgba(255,255,255,.25));
 border-radius:50%;background:var(--pc-user-raised,rgba(100,75,117,.36));
 color:var(--pc-user-text,var(--text));box-shadow:0 2px 10px rgba(0,0,0,.13);text-decoration:none;
}
.pc-header-avatar{position:relative;display:grid;place-items:center;width:100%;height:100%;border-radius:inherit;overflow:hidden}
.pc-header-avatar-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:24px;line-height:1}
.pc-header-avatar-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit}
.pc-header-avatar-image[hidden]{display:none!important}
body[data-pc-app="player"] #topbar .pc-event-profile-shortcut:focus-visible,
body[data-pc-app="family-player"] #familyEventHeader .pc-event-profile-shortcut:focus-visible{
 outline:3px solid var(--pc-user-accent,#ffd36a);outline-offset:3px;
}
@media(max-width:360px){
 body[data-pc-app="player"] .pc-player-header-row #topbar .pc-topbar-event:has(>.pc-event-identity),
 body[data-pc-app="family-player"] #familyTopbar #familyEventHeader:not([hidden]){
  grid-template-columns:minmax(0,1fr) 40px;column-gap:8px;
 }
 body[data-pc-app="player"] .pc-player-header-row #topbar .pc-topbar-event>.pc-event-profile-shortcut,
 body[data-pc-app="family-player"] #familyTopbar #familyEventHeader>.pc-event-profile-shortcut{
  width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;
 }
}

/* Misma cabecera contextual en Mi perfil y en el interior del evento. */
body[data-account-view="identity"] .pc-account-header.pc-unified-profile-header{
 display:grid;grid-template-columns:minmax(0,1fr) 44px;
 grid-template-areas:"account avatar";align-items:center;
 gap:10px;padding:2px 0;margin:0 0 12px;
 min-height:74px;width:100%;min-width:0;background:transparent;border:0;box-shadow:none;
}
body[data-account-view="identity"] .pc-unified-profile-header .pc-profile-header-content{
 grid-area:account;min-width:0;display:grid;justify-items:start;align-content:center;gap:5px;
}
body[data-account-view="identity"] .pc-unified-profile-header .eyebrow{
 margin:0;font-size:10px;letter-spacing:.09em;font-weight:800;
 color:var(--pc-user-accent,var(--gold));
}
body[data-account-view="identity"] .pc-unified-profile-header .pc-profile-header-page{
 display:block;margin:0;font-size:14px;line-height:1.25;font-weight:850;letter-spacing:0;
 color:var(--pc-user-text,var(--text));overflow-wrap:anywhere;
}
body[data-account-view="identity"] .pc-unified-profile-header .pc-account-back{
 justify-self:start;align-self:center;display:inline-flex;align-items:center;
 width:fit-content;min-height:33px;max-width:100%;padding:7px 10px;
 font-size:11px;line-height:1.25;white-space:normal;
 border-radius:12px;background:var(--pc-user-raised,rgba(255,255,255,.055));
 color:var(--pc-user-text,var(--text));
 border:1px solid var(--pc-user-border,var(--line));
 box-shadow:none;text-decoration:none;
}
body[data-account-view="identity"] .pc-unified-profile-header .pc-profile-header-avatar{
 grid-area:avatar;place-self:center end;display:grid;place-items:center;
 width:44px;height:44px;min-width:44px;overflow:hidden;
 border:1px solid var(--pc-user-border,var(--line));
 border-radius:50%;font-size:24px;line-height:1;
 color:var(--pc-user-text,var(--text));background:var(--pc-user-raised,rgba(255,255,255,.055));
}
body[data-account-view="identity"] .pc-unified-profile-header .pc-profile-header-avatar img{
 width:100%;height:100%;display:block;object-fit:cover;object-position:center;border-radius:inherit;
}
body[data-account-view="identity"] .pc-unified-profile-header .pc-account-back:focus-visible{
 outline:3px solid var(--pc-user-accent,#ffd36a);outline-offset:3px;
}
@media(max-width:360px){
 body[data-account-view="identity"] .pc-account-header.pc-unified-profile-header{
  grid-template-columns:minmax(0,1fr) 40px;
 }
 body[data-account-view="identity"] .pc-unified-profile-header .pc-profile-header-avatar{
  width:40px;height:40px;min-width:40px;
 }
}
