.timeline-wrap { position: relative; }

#timelineCanvas {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  margin-top: 8px;
  z-index: 1;
  pointer-events: auto;
}

.v-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed #ffcf6b;
  left: 40px;
  pointer-events: auto;
  z-index: 3;
  cursor: ew-resize;
}

.axis-scrubber {
  position: absolute;
  height: 10px;
  width: 18px;
  bottom: 0;
  left: 40px;
  transform: translateX(-9px);
  background: rgba(255,207,107,0.85);
  border: 1px solid #ffcd6b;
  border-radius: 3px 3px 0 0;
  z-index: 4;
  cursor: ew-resize;
  pointer-events: auto;
}

/* Shortcut keys grid: 3 columns x 4 rows */
.help-grid {
  margin-top: 10px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(24px, auto);
  gap: 10px;
}
.help-grid.hidden { display: none; }
.help-item { display: flex; align-items: center; gap: 8px; }
.help-item .key {
  min-width: 24px;
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--help-key-bg);
  color: var(--help-key-fg);
  font-weight: 700;
  letter-spacing: 0.4px;
}
.help-item .desc {
  opacity: 0.95;
  text-transform: lowercase;
}

@media (max-width: 760px) {
  .player-bar { position: sticky; top: 0; z-index: 4; border-radius: 10px; padding: 8px; gap: 8px; }
}

/* Minimal additions to prevent overlays from blocking clicks elsewhere */
.overlay-noninteractive { pointer-events: none; }

