/* "Compare with a pro" (plan 2026-11-17 11:11): the clip bar's button and the full-screen view it opens
   (_compare_pro_modal.html). The court fills the screen; every control floats on it as dark glass. */
.ma-now-pro { flex: none; margin-top: 4px; padding: 5px 12px; border: 0; border-radius: 999px; background: #fff;
  color: var(--ma-navy, #0f2742); font-size: 12px; font-weight: 700; cursor: pointer; }
.ma-now-pro:hover { background: #e2e8f0; }
.ma-now-pro[hidden] { display: none; }

body.cpm-open { overflow: hidden; }
.cpm { --you: #f07a5a; --pro: #6fa3f2; --ink: #f4f7f6; --muted: #b9c6c0; --glass: rgba(14, 20, 18, 0.72);
  --edge: rgba(255, 255, 255, 0.14); --gap: 12px;
  position: fixed; inset: 0; z-index: 2000; background: #151b18; color: var(--ink); overflow: hidden;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
.cpm[hidden] { display: none; }
.cpm [hidden] { display: none !important; }
.cpm button { font: inherit; color: inherit; cursor: pointer; }
.cpm canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none;
  cursor: grab; }
.cpm canvas:active { cursor: grabbing; }
.cpm-glass { background: var(--glass); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.cpm svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* top: the view tabs, the X */
.cpm-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: var(--gap);
  padding: max(var(--gap), env(safe-area-inset-top)) var(--gap) 0; pointer-events: none; }
.cpm-top > * { pointer-events: auto; }
.cpm .cpm-views { width: auto; max-width: calc(100% - 92px - 2 * var(--gap)); margin-right: auto; border-radius: 14px;
  background: var(--glass); }
.cpm .cpm-views button { flex: none; padding: 9px 12px; font-size: 13px; }
.cpm .cpm-views button[aria-pressed="false"]:hover { background: rgba(255, 255, 255, 0.12); }
.cpm-x { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.cpm-x svg { width: 22px; height: 22px; stroke-width: 2.6; }
.cpm-x:hover { background: rgba(30, 40, 36, 0.85); }
.cpm-link svg { width: 21px; height: 21px; stroke-width: 2.2; }
.cpm-link .i-ok, .cpm-link.ok .i-link { display: none; }
.cpm-link.ok .i-ok { display: block; }
.cpm-link.ok { color: #7ee0a8; }
@media (max-width: 400px) {                                /* phones: the 4 view tabs + link + X on one row */
  .cpm-x { width: 40px; height: 40px; }
  .cpm .cpm-views { max-width: calc(100% - 80px - 2 * var(--gap)); }
  .cpm .cpm-views button { padding: 9px 9px; }
}
.cpm-done { position: absolute; right: var(--gap); top: calc(max(var(--gap), env(safe-area-inset-top)) + 54px);
  padding: 6px 12px; border-radius: 999px; background: #fff; color: #111; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); pointer-events: none; }

/* on the court: the player / Pro over the heads, the messages */
.cpm-tag { position: absolute; left: 0; top: 0; padding: 3px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 700; color: #fff; pointer-events: none; white-space: nowrap; will-change: transform;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.cpm-tag.you { background: var(--you); }
.cpm-tag.pro { background: var(--pro); }
.cpm-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font-size: 15px; color: var(--muted); }
.cpm-sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.cpm-sw.you { background: var(--you); }
.cpm-sw.pro { background: var(--pro); }

/* bottom: player / Pro / Both, play, the scrubber */
.cpm-bot { position: absolute; left: 50%; transform: translateX(-50%);
  bottom: max(var(--gap), env(safe-area-inset-bottom)); width: min(520px, calc(100% - 2 * var(--gap)));
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 12px 8px; border-radius: 18px; }
.cpm-seg { display: flex; width: 100%; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.cpm-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 8px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 700; }
.cpm-seg button[aria-pressed="true"] { background: #fff; color: #111; }
.cpm-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.cpm-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); }
.cpm-icon svg { width: 20px; height: 20px; }
.cpm .cpm-play { background: #fff; color: #111; }
.cpm-play svg { fill: currentColor; stroke: none; }
.cpm-play .i-play, .cpm-play.paused .i-pause { display: none; }
.cpm-play.paused .i-play { display: block; }
.cpm-scrub { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.cpm-scrub input { width: 100%; margin: 0; accent-color: #fff; }
.cpm-tick { position: absolute; top: -8px; width: 2px; height: 7px; border-radius: 1px; background: var(--muted);
  transform: translateX(-1px); pointer-events: none; }
.cpm-when { font-size: 12px; font-weight: 600; color: var(--muted); min-height: 16px; }
.cpm-when.at { color: #fff; }
.cpm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
