/* Virality predictor: the media with the attention map over it, an attention timeline under it, the scores beside it */
.vp-editor { align-items: start; }
.vp-main { display: grid; gap: 10px; min-width: 0; }
.vp-stage { padding: 0; background: #0e0807; cursor: crosshair; overflow: hidden; touch-action: none; min-height: 240px; justify-self: center; max-width: 100%; }
.vp-stage canvas { display: block; width: 100%; height: 100%; max-height: none; }
.vp-stage.is-playing { cursor: default; }

/* floating bits on the stage: the view switch, play, progress, hint */
.vp-float { position: absolute; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 10px rgba(14, 8, 7, 0.14), 0 0 0 1px rgba(14, 8, 7, 0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vp-float-right { right: 12px; }
.vp-pill { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 12.5px/1 var(--sans); cursor: pointer; user-select: none; -webkit-user-select: none; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.vp-pill:hover { background: rgba(14, 8, 7, 0.08); }
.vp-pill.is-on { background: var(--ink); color: #fff; }
.vp-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); cursor: pointer; box-shadow: 0 6px 24px rgba(14, 8, 7, 0.3); transition: opacity var(--t) var(--ease); }
.vp-play:hover { background: #fff; }
.vp-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.vp-play.is-pause svg { margin-left: 0; }
.vp-stage.is-playing .vp-play { opacity: 0; }
.vp-stage.is-playing:hover .vp-play { opacity: 1; }
.vp-progress { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; gap: 7px; min-width: 240px; padding: 11px 14px; border-radius: 12px; background: rgba(14, 8, 7, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 500 13px/1.3 var(--sans); pointer-events: none; box-shadow: 0 10px 30px rgba(14, 8, 7, 0.25); }
.vp-bar-track { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.vp-bar-track i { display: block; height: 100%; width: 0; background: #fff; transition: width var(--t) var(--ease); }
.vp-hint-float { position: absolute; left: 12px; bottom: 12px; z-index: 2; margin: 0; max-width: 70%; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.85); color: var(--muted); font: 400 12px/1.4 var(--sans); pointer-events: none; transition: opacity var(--t-slow) var(--ease); }
.vp-stage.is-busy .vp-hint-float, .vp-hint-float:empty { opacity: 0; }

/* the attention timeline under a video */
.vp-timeline { display: grid; gap: 4px; }
.vp-timeline canvas { display: block; width: 100%; height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.vp-times { display: flex; justify-content: space-between; font: 500 12px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.vp-times-label { letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }

/* the side panel */
.vp-panel { display: grid; gap: 12px; align-content: start; }
.vp-block { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.vp-block h3 { margin: 0; font: 600 12px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.vp-hint { margin: 0; font: 400 12.5px/1.45 var(--sans); color: var(--muted); }
.vp-score-block { grid-template-columns: auto 1fr; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-color: var(--ink); }
.vp-score { display: flex; align-items: baseline; gap: 2px; }
.vp-score b { font: 600 52px/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vp-score-of { font: 500 14px/1 var(--sans); opacity: 0.55; }
.vp-score-block h3 { color: rgba(255, 255, 255, 0.6); }
.vp-verdict { margin: 4px 0 0; font: 500 14px/1.35 var(--sans); }
.vp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vp-tile { display: grid; gap: 4px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.vp-tile b { font: 600 24px/1 var(--serif); font-variant-numeric: tabular-nums; }
.vp-tile span { font: 600 11px/1.2 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.vp-tile.is-low b { color: var(--orange); }
.vp-tile.is-high b { color: var(--green); }
.vp-spots, .vp-tips, .vp-boxes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.vp-spots li, .vp-boxes li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; font: 500 13.5px/1.3 var(--sans); }
.vp-spots i, .vp-boxes i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/1 var(--sans); font-style: normal; }
.vp-boxes i { background: var(--blue); }
.vp-spots b, .vp-boxes b { font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.vp-spots small, .vp-boxes small { display: block; font: 400 12px/1.3 var(--sans); color: var(--muted); }
.vp-boxes button { border: 0; background: none; color: var(--muted); font: 600 16px/1 var(--sans); cursor: pointer; padding: 2px 6px; }
.vp-boxes button:hover { color: var(--ink); }
.vp-boxes:empty, .vp-spots:empty { display: none; }
.vp-tips li { position: relative; padding-left: 16px; font: 400 13px/1.45 var(--sans); }
.vp-tips li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.vp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vp-panel .btn { width: 100%; }
.vp-link { padding: 0; border: 0; background: none; font: 600 12.5px/1 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* the whole-video card: a blurred preview behind a sign-in card on the site, plain in the app */
.vp-pro-block { position: relative; overflow: hidden; }
.vp-pro-inner { display: grid; gap: 8px; }
.vp-pro-lede { margin: 0; font: 500 13.5px/1.4 var(--sans); }
.vp-pro-list { margin: 0; padding-left: 18px; font: 400 12.5px/1.5 var(--sans); color: var(--muted); }
.vp-pro-block.is-locked .vp-pro-inner { filter: blur(5px); opacity: 0.55; pointer-events: none; user-select: none; -webkit-user-select: none; }
.vp-pro-block.is-locked { min-height: 190px; }
.vp-lock { display: none; }
.vp-pro-block.is-locked .vp-lock { position: absolute; inset: 0; display: grid; gap: 8px; align-content: center; padding: 14px; text-align: center; background: rgba(255, 255, 255, 0.6); }
.vp-lock b { font: 600 14.5px/1.25 var(--sans); }
.vp-lock p { margin: 0; font: 400 12.5px/1.45 var(--sans); color: var(--muted); }
.vp-lock .btn { width: 100%; text-align: center; }
.vp-lock .vp-link { justify-self: center; }
#vp-stats:empty { display: none; }
.tool-note:empty { display: none; }

@media (max-width: 860px) {
  .vp-editor { gap: 12px; }
  .vp-stage { justify-self: stretch; width: 100% !important; border-radius: 14px; }
  .vp-hint-float { max-width: 80%; font-size: 11.5px; }
  .vp-float-right { right: 8px; top: 8px; }
  .vp-panel { gap: 10px; }
  .vp-block { padding: 12px; border-radius: 12px; }
  .vp-score b { font-size: 44px; }
}
