/* Playback styles, shared by the Cast Timeline (/casts) and the M+ Route Map (/mplus).
   Moved out of casts.html alongside playback.js. */
.tl-buffband { position: absolute; z-index: 1; pointer-events: none; border-radius: 2px; }
.tl-buffband-lust { background: rgba(244,63,94,0.08);
  border-left: 2px solid rgba(244,63,94,0.35); border-right: 2px solid rgba(244,63,94,0.35); }
.tl-buffband-pi { background: rgba(250,204,21,0.10);
  border-left: 2px solid rgba(250,204,21,0.45); border-right: 2px solid rgba(250,204,21,0.45); }
#buffs-btn.active { background: var(--indigo); color: #fff; border-color: transparent; }
#res-btn.active { background: var(--indigo); color: #fff; border-color: transparent; }
#stopdps-btn.active { background: var(--indigo); color: #fff; border-color: transparent; }

/* ── Playback Mode (Idea 1): horizontal rotation replay, icons flow past a fixed playhead ── */
#pb-btn.active { background: var(--indigo); color: #fff; border-color: transparent; }
.pb-src { margin-top: 12px; }
.pb-src:first-of-type { margin-top: 0; }
.pb-src-head { font-size: 13px; font-weight: 700; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Stop DPS roster filter: one chip per raider above the group stack, click to drop that row,
   drag to reorder the stack */
.pb-who { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-who-chip { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--surface);
  cursor: grab; transition: opacity 150ms, background 150ms;
  -webkit-user-drag: element; }   /* WebKit won't start a drag on a <button> without it */
.pb-who-chip:hover { background: var(--surface-2); }
.pb-who-chip:active { cursor: grabbing; }
.pb-who-chip.dragging { opacity: .35; }
.pb-who-chip[aria-pressed="false"] { opacity: .42; text-decoration: line-through; }
.pb-who-reset { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 600; border: 1px dashed var(--border); background: transparent;
  color: var(--fg-muted); cursor: pointer; transition: background 150ms; }
.pb-who-reset:hover { background: var(--surface-2); }
.pb-view { position: relative; overflow: hidden; border: 1px solid var(--border);
  border-radius: 12px; background: rgba(255,255,255,0.015); cursor: pointer; }
.pb-labels { position: absolute; left: 0; top: 0; bottom: 0; width: 100px; z-index: 5;
  background: linear-gradient(90deg, #121218, #0d0d11);   /* opaque so scrolling icons don't bleed through the gutter */
  border-right: 1px solid var(--border); box-shadow: 1px 0 0 rgba(255,255,255,0.03); }
.pb-lane-lbl { position: absolute; left: 0; width: 100px; display: flex; align-items: center;
  padding: 0 8px 0 15px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: #c7ccd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-lane-lbl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: rgba(255,255,255,0.28); }
.pb-flow { position: absolute; left: 100px; top: 0; will-change: transform; }
.pb-lane { position: absolute; left: 0; }
.pb-tick { position: absolute; transform: translateX(-50%); font-size: 10px;
  font-family: 'Fira Code', monospace; color: var(--fg-muted); }
.pb-icon { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px;
  border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,0.6);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06); transition: filter 120ms ease, opacity 120ms ease; }
.pb-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-icon.pb-past { filter: brightness(0.4); opacity: 0.55; }
/* Resource strip (Idea 3): SVG curve lives inside the flow so it scrolls with the icons; label +
   0/50/100 scale sit in the fixed gutter; the dot rides the playhead showing the live value. */
.pb-res-svg { position: absolute; left: 0; z-index: 1; overflow: visible; }
.pb-res-lbl { position: absolute; left: 0; width: 100px; z-index: 5; display: flex; align-items: center;
  padding: 0 26px 0 15px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  color: #c7ccd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-res-scale { position: absolute; left: 0; width: 100px; z-index: 5; padding-right: 9px;
  font-size: 9px; font-family: 'Fira Code', monospace; color: var(--fg-muted); text-align: right;
  transform: translateY(-50%); }
.pb-res-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; z-index: 7;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgba(0,0,0,0.55); pointer-events: none; }
.pb-res-val { position: absolute; z-index: 7; transform: translate(-50%, -140%);
  font-size: 10px; font-weight: 700; font-family: 'Fira Code', monospace; padding: 0 4px; border-radius: 4px;
  background: rgba(10,10,14,0.85); white-space: nowrap; pointer-events: none; }
.pb-playhead-v { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--teal);
  z-index: 6; pointer-events: none; }
.pb-playhead-lbl { position: absolute; top: 2px; left: 4px; font-size: 10px; font-weight: 700;
  color: var(--bg-deep); background: var(--teal); border-radius: 4px; padding: 0 4px; white-space: nowrap; }
/* Custom speed dropdown (mirrors the wipes.html "Pulls analyzed" select): glass button + frosted
   list with a brand-purple selected row, instead of a native <select> that can't be styled that far. */
.pb-speed-wrap { position: relative; }
.pb-speed-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 66px; height: 36px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  font-size: 0.875rem; font-weight: 600; color: var(--fg); font-family: inherit;
  background: var(--surface-solid); border: 1px solid var(--border);
  transition: border-color 180ms, background 180ms; }
.pb-speed-btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.16); }
.pb-speed-caret { width: 12px; height: 12px; flex-shrink: 0; color: var(--fg-muted); transition: transform 200ms; }
.pb-speed-wrap.open .pb-speed-caret { transform: rotate(180deg); }
.pb-speed-list { position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; z-index: 30;
  list-style: none; margin: 0; padding: 4px;
  background: rgba(16,16,22,0.9); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4); display: none; }
.pb-speed-wrap.open .pb-speed-list { display: block; }
.pb-speed-opt { padding: 6px 12px; font-size: 0.82rem; font-weight: 600; color: var(--fg-muted);
  border-radius: 6px; cursor: pointer; white-space: nowrap; transition: background 120ms, color 120ms; }
.pb-speed-opt:hover { background: rgba(139,127,214,0.18); color: var(--fg); }
.pb-speed-opt.selected { background: rgba(139,127,214,0.14); color: #c4bef0; }
