/* Shared contextual help, scoped to Leya's launcher and panel. */
.leya-context-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:10px 14px; max-width:100%; border:1px solid #316e7b; border-radius:11px; background:#102d37; color:#eafcff; font:inherit; font-size:13px; font-weight:650; line-height:1.45; white-space:normal; text-align:center; cursor:pointer; }
.leya-context-button:hover { background:#164552; }
.leya-context-button:focus-visible,.leya-context-close:focus-visible { outline:2px solid #62e1f0; outline-offset:3px; }
.leya-context-panel { position:fixed; z-index:100610; top:16px; right:16px; bottom:auto; max-height:calc(100dvh - var(--paxor-player-height,112px) - 32px); width:min(420px,calc(100vw - 32px)); display:flex; flex-direction:column; border:1px solid #306c7b; border-radius:18px; overflow:hidden; box-shadow:0 18px 70px #0009; background:#0a1921; color:#eaf5f8; box-sizing:border-box; font-size:14px; }
.leya-context-panel[data-in-modal="true"] { max-height:calc(100dvh - 32px); }
.leya-context-panel *, .leya-context-panel *::before,.leya-context-panel *::after { box-sizing:border-box; }
.leya-context-head { display:flex; flex:none; align-items:center; justify-content:space-between; gap:12px; padding:15px; background:linear-gradient(110deg,#10323f,#075167); border-bottom:1px solid #2b6876; }
.leya-context-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.leya-context-panel .leya-context-head strong { color:#f0fbfd !important; font-size:15px; line-height:1.45; overflow-wrap:anywhere; }
.leya-context-avatar { display:block; flex:none; width:46px; height:46px; overflow:hidden; border:2px solid rgba(53,211,255,.85); border-radius:50%; background:#12313d center/cover no-repeat url('/static/img/leya.png'); box-shadow:0 0 20px rgba(0,196,255,.28); }
.leya-context-avatar-video { display:block; width:100%; height:100%; border-radius:inherit; object-fit:cover; pointer-events:none; }
.leya-context-panel .leya-context-close { flex:none; width:38px; height:38px; padding:0; border:1px solid #347386; border-radius:10px; background:#0b303e; color:#eafcff !important; font-size:28px; line-height:1; cursor:pointer; }
.leya-context-body { min-height:0; padding:16px; overflow:auto; overscroll-behavior:contain; }
.leya-context-identity { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:14px; border:1px solid #315866; border-radius:12px; background:#102730; overflow-wrap:anywhere; }
.leya-context-kicker { color:#a5c2cc; font-size:11px; font-weight:650; }
.leya-context-panel .leya-context-title { color:inherit; font-size:18px; line-height:1.4; font-weight:750; max-width:100%; }
.leya-context-artist { color:#b8cdd5; line-height:1.45; }
.leya-context-kind { border:1px solid #366370; border-radius:99px; padding:4px 8px; margin-top:5px; color:#b8dce6; font-size:11px; }
.leya-context-intro,.leya-context-empty { margin:16px 0 12px; color:#bbced5; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.leya-context-actions { display:grid; gap:9px; }
.leya-context-actions>.leya-context-button { justify-content:flex-start; text-align:start; }
.leya-context-values { display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px 14px; width:100%; margin:9px 0 0; font-size:12px; }
.leya-context-values dt { color:#a5c2cc; }.leya-context-values dd { margin:0; text-align:end; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
body.light-theme .leya-context-panel,html[data-theme="light"] .leya-context-panel { background:#f4fbfd; color:#193740; }
body.light-theme .leya-context-panel .leya-context-head .leya-context-brand>strong,html[data-theme="light"] .leya-context-panel .leya-context-head .leya-context-brand>strong { color:#f0fbfd !important; }
body.light-theme .leya-context-identity,html[data-theme="light"] .leya-context-identity { background:#e6f3f7; border-color:#afd5df; }
body.light-theme .leya-context-button,html[data-theme="light"] .leya-context-button { background:#e4f2f6; color:#204957; border-color:#a6d0dd; }
body.light-theme .leya-context-intro,html[data-theme="light"] .leya-context-intro,body.light-theme .leya-context-empty,html[data-theme="light"] .leya-context-empty,body.light-theme .leya-context-kicker,html[data-theme="light"] .leya-context-kicker,body.light-theme .leya-context-artist,html[data-theme="light"] .leya-context-artist,body.light-theme .leya-context-kind,html[data-theme="light"] .leya-context-kind,body.light-theme .leya-context-values dt,html[data-theme="light"] .leya-context-values dt { color:#486772; }
@media(max-width:760px) {
 .leya-context-panel { top:auto; left:8px; right:8px; bottom:calc(var(--paxor-mobile-player-height,90px) + env(safe-area-inset-bottom) + 8px); width:auto; max-height:calc(100dvh - var(--paxor-mobile-player-height,90px) - env(safe-area-inset-bottom) - 20px); border-radius:16px; }
 .leya-context-panel[data-in-modal="true"] { bottom:8px; max-height:calc(100dvh - env(safe-area-inset-bottom) - 16px); }
 .leya-context-head { padding:13px; }.leya-context-body { padding:13px; }
 .leya-context-values { grid-template-columns:minmax(0,1fr); }.leya-context-values dd { text-align:start; }
}

/* The same animated Leya portrait is a compact invitation beside a track. */
.music-track-detail-hero .music-track-heading-copy.leya-context-has-launch {
 display:grid; grid-template-columns:minmax(0,1fr) 88px; grid-template-rows:auto auto minmax(0,1fr);
 column-gap:16px; row-gap:0; align-items:start; padding-inline-end:0; min-height:0; box-sizing:border-box;
}
.music-track-detail-hero .music-track-heading-copy.leya-context-has-launch>h1 { grid-column:1; grid-row:1; min-width:0; }
.music-track-detail-hero .music-track-heading-copy.leya-context-has-launch>.music-detail-artist { grid-column:1; grid-row:2; min-width:0; }
.music-track-heading-copy>.leya-context-launch {
 position:static; grid-column:2; grid-row:1 / span 3; align-self:start; display:grid; grid-template-columns:20px 60px; grid-template-rows:60px auto;
 align-items:center; justify-items:center; gap:3px 3px; width:88px; min-width:88px; max-width:88px; min-height:82px;
 margin:0; padding:0; border:0; border-radius:12px; background:transparent; box-shadow:none; color:inherit; line-height:1.2;
 text-decoration:none; -webkit-tap-highlight-color:transparent;
}
.music-track-heading-copy>.leya-context-launch:hover,
.music-track-heading-copy>.leya-context-launch:active,
body.light-theme .music-track-heading-copy>.leya-context-launch,
html[data-theme="light"] .music-track-heading-copy>.leya-context-launch { background:transparent; border:0; box-shadow:none; }
.leya-context-launch .leya-context-launch-avatar { width:56px; height:56px; grid-column:2; grid-row:1; transition:transform .16s ease,box-shadow .16s ease; }
.leya-context-launch:hover .leya-context-launch-avatar,.leya-context-launch:focus-visible .leya-context-launch-avatar { transform:scale(1.04); box-shadow:0 0 22px rgba(0,196,255,.5); }
.leya-context-launch .leya-context-invite-arrow { grid-column:1; grid-row:1; align-self:center; color:#77deef; font-size:24px; line-height:1; animation:leya-context-invite 2.8s ease-in-out 3; }
.leya-context-launch .leya-context-invite-label { grid-column:1/-1; grid-row:2; max-width:88px; padding-block-end:2px; color:inherit; font-size:11px; font-weight:650; line-height:1.25; white-space:normal; overflow-wrap:anywhere; text-align:center; }
[dir="rtl"] .leya-context-invite-arrow { scale:-1 1; }
@keyframes leya-context-invite { 0%,25%,60%,100% { transform:translateX(0); opacity:.7; } 40% { transform:translateX(4px); opacity:1; } }
@media(prefers-reduced-motion:reduce) {
 .leya-context-launch .leya-context-invite-arrow { animation:none; }
 .leya-context-launch .leya-context-launch-avatar { transition:none; }
}
