/* Animation player: the character view with the clip list and transport over it. */
html, body { height: 100%; margin: 0; }
body { background: radial-gradient(120% 90% at 50% 30%, #2A221C 0%, #17130F 70%); overflow: hidden; }
.ap { position: relative; height: 100%; }
.ap__view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.ap__view:active { cursor: grabbing; }
.ap__clips {
  position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 4px;
  padding: 8px; background: rgba(27, 22, 18, 0.85); border: 1px solid var(--border); border-radius: 12px;
  max-height: calc(100% - 120px); overflow: auto;
}
.ap__clips h2 { font: 600 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 6px 8px 8px; }
.ap__clip {
  min-height: 40px; min-width: 132px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2); font: 500 15px/1 var(--font-body); text-align: left; text-transform: capitalize; cursor: pointer;
}
.ap__clip:hover { color: var(--text); background: var(--surface-2); }
.ap__clip[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.ap__clip:focus-visible, .ap__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap__bar {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 16px;
  padding: 10px 14px; background: rgba(27, 22, 18, 0.85); border: 1px solid var(--border); border-radius: 12px;
}
.ap__btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer;
}
.ap__time { flex: 1; min-width: 80px; accent-color: var(--accent); }
.ap__label { font: 500 13px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.ap__speed { width: 110px; accent-color: var(--accent); }
.ap__hint { position: absolute; top: 20px; right: 20px; margin: 0; font-size: 13px; color: var(--muted); }
.ap__error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
@media (max-width: 640px) {
  .ap__clips { flex-direction: row; flex-wrap: wrap; right: 16px; max-height: none; }
  .ap__clips h2 { display: none; }
  .ap__clip { min-width: 0; }
  .ap__hint { display: none; }
  .ap__speed { width: 70px; }
}
