/* AwayDay v2.3.4: desktop profile alignment, account popover and notification launcher. */
@media (min-width:741px) {
  /* The profile shortcode previously imposed an inline 72px top gap. */
  body .ad-next-app .page-content .ad-profile { margin-top:0!important; }
  /* The original live notifications popover was hidden by a retired shell rule. */
  body.ad-next-body #awayday-notif-bell,
  body:has(.ad-next-app) #awayday-notif-bell {
    display:block!important; position:fixed!important; right:26px!important; bottom:24px!important;
    z-index:2400!important;
  }
  /* When the richer popover exists, don't duplicate it in the header. */
  body:has(#awayday-notif-bell) .ad-next-app .ad-next-top-actions .ad-next-notification-link { display:none!important; }
}
/* Do not let notifications collide with the mobile menu/dock. */
@media (max-width:740px) {
  body #awayday-notif-bell,body:has(.ad-next-app) #awayday-notif-bell {display:none!important;}
  .ad-next-app .ad-next-top-actions .ad-next-notification-link {display:none!important;}
  .ad-next-app .page-content .ad-profile {margin-top:0!important;}
}
body:has(.ad-next-app) #notif-toggle {
  background:linear-gradient(135deg,#18375b,#23548a)!important; color:#fff!important;
  border:1px solid rgba(229,242,255,.3)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.34)!important;
  transition:transform .16s ease,background .16s ease;
}
body:has(.ad-next-app) #notif-toggle:hover {transform:translateY(-2px);}
body:has(.ad-next-app) #notif-toggle:focus-visible {outline:3px solid #e0ed87;outline-offset:3px;}
/* Rail avatar is a button now; it must look identical to the old avatar link. */
.ad-next-app .ad-next-rail-account {position:relative;display:grid;place-items:center;overflow:visible;}
.ad-next-app .ad-next-rail-account .ad-next-rail-avatar {
  border:1px solid rgba(235,245,255,.3)!important;padding:0!important;cursor:pointer;
  font-family:inherit;flex:0 0 42px;
}
.ad-next-app .ad-next-rail-account .ad-next-rail-avatar:focus-visible {outline:3px solid #e0ed87;outline-offset:3px;}
.ad-next-app .ad-next-rail-account-menu {
  position:absolute;left:calc(100% + 21px);bottom:0;z-index:4000;
  display:flex;flex-direction:column;gap:3px;width:224px;padding:9px;
  border:1px solid rgba(202,223,251,.25);border-radius:17px;
  background:#182232;color:#f1f6ff;box-shadow:0 20px 55px rgba(0,0,0,.42);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
}
.ad-next-app .ad-next-rail-account-menu[hidden] {display:none!important;}
.ad-next-app .ad-next-rail-menu-heading {padding:9px 11px 10px;font-weight:850;font-size:13px;overflow-wrap:anywhere;}
.ad-next-app .ad-next-rail-menu-heading small {display:block;font-weight:550;font-size:10px;color:#b9c9dc;margin-top:4px;}
.ad-next-app .ad-next-rail-account-menu a {
  display:flex;gap:11px;align-items:center;min-height:41px;padding:9px 11px;
  border-radius:10px;color:#edf4ff!important;text-decoration:none!important;
  font-size:12px;font-weight:750;line-height:1.25;
}
.ad-next-app .ad-next-rail-account-menu a:hover,
.ad-next-app .ad-next-rail-account-menu a:focus-visible {background:#2e4057!important;outline:none;}
.ad-next-app .ad-next-rail-account-menu a .adp-icon {width:17px;height:17px;flex:0 0 17px;color:#b9d7f3;}
.ad-next-app .ad-next-rail-menu-divider {height:1px;margin:5px 3px;background:rgba(235,245,255,.16);}
.ad-next-app .ad-next-rail-account-menu .ad-next-rail-signout {color:#ffd6dc!important;}
body.light-mode .ad-next-app .ad-next-rail-account-menu {background:#fff;border-color:#c7d5e7;box-shadow:0 16px 40px rgba(30,48,76,.2);color:#17283e;}
body.light-mode .ad-next-app .ad-next-rail-menu-heading small {color:#52647e;}
body.light-mode .ad-next-app .ad-next-rail-account-menu a {color:#17283e!important;}
body.light-mode .ad-next-app .ad-next-rail-account-menu a:hover,
body.light-mode .ad-next-app .ad-next-rail-account-menu a:focus-visible {background:#edf3f9!important;}
body.light-mode .ad-next-app .ad-next-rail-account-menu a .adp-icon {color:#446385;}
body.light-mode .ad-next-app .ad-next-rail-account-menu .ad-next-rail-signout {color:#a92735!important;}
body.light-mode .ad-next-app .ad-next-rail-menu-divider {background:#dae3ef;}
/* A club name is now dynamic rather than generic; keep it readable in the hero. */
.ad-next-app .ad-next-showcase-bar>span:first-child {min-width:0;overflow-wrap:anywhere;}
/* Visible, consistently sized emblem slots, including honest initial-based fallbacks. */
.ad-next-app .ad-next-fixture-team .ad-next-team-crest {
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;
  width:30px;height:30px;overflow:hidden;border-radius:50%;
  background:rgba(188,213,248,.1);border:1px solid rgba(223,234,255,.14);
}
.ad-next-app .ad-next-fixture-team .ad-next-team-crest img {width:100%;height:100%;object-fit:contain;}
.ad-next-app .ad-next-fixture-team .ad-next-team-crest.ad-next-team-initials {
  background:#263b59;color:#e5efff;font-size:9px;font-weight:850;letter-spacing:-.03em;
}
body.light-mode .ad-next-app .ad-next-fixture-team .ad-next-team-crest.ad-next-team-initials {background:#e8eef8;color:#28405e;}
@media (max-width:970px) and (min-width:741px) {
  .ad-next-app .ad-next-rail-account-menu {left:calc(100% + 16px);}
}
