/* share_sound.css — the share card, the sound label and the in-call player (2026-11-13).
 * Glass follows style_glass.css (.lg / .lg-sheet). No 100vh; the player queries its own width. */
.share-dialog .share-body { display: grid; gap: 8px; }
.share-sub strong { font-weight: 650; }
.share-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
  padding: 10px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  font: inherit; color: var(--lg-ink, inherit);
  border: 1px solid oklch(100% 0 0 / 0.42); background: oklch(100% 0 0 / 0.26);
}
.share-opt:hover { background: oklch(100% 0 0 / 0.40); }
.share-opt:focus-visible { outline: 2px solid oklch(68% 0.15 235); outline-offset: 2px; }
.share-opt-ico { flex: none; }
.share-opt-ico svg { width: 26px; height: 26px; display: block; }
.share-opt-txt { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; min-width: 0; }
.share-opt-txt span { font-size: 12.5px; opacity: 0.75; }
.share-skip { display: flex; gap: 8px; align-items: center; font-size: 12.5px; opacity: 0.8; padding: 4px 2px; }

#share-sound-badge {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 9998;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
  padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1.2 system-ui, sans-serif; color: #fff;
  background: rgba(20, 24, 32, 0.5); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
#share-sound-badge.is-silent { background: rgba(72, 44, 20, 0.58); }
#share-sound-badge svg { width: 16px; height: 16px; flex: none; }
#share-sound-badge button {
  font: inherit; font-size: 12px; color: #fff; cursor: pointer; min-height: 28px;
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.16);
}

.ymp {
  position: fixed; z-index: 9997; container-type: inline-size;
  right: max(12px, env(safe-area-inset-right)); bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  width: min(360px, calc(100vw - 24px)); padding: 10px; border-radius: 20px;
}
.ymp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ymp-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; flex: none; }
.ymp-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px system-ui, sans-serif; }
.ymp-stop {
  flex: none; min-height: 32px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  font: 600 12.5px system-ui, sans-serif; color: #fff; background: #d64545; border: none;
}
.ymp-video { width: 100%; max-height: 40dvh; border-radius: 12px; background: #000; display: block; }
@container (max-width: 280px) { .ymp-title { display: none; } }
/* Beat the global button rules (stacked + centred) so every option reads the same way. */
.share-dialog .share-body .share-opt { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; }
.share-dialog .share-body .share-opt-txt { align-items: flex-start; text-align: left; flex: 1 1 auto; }
