/* ── Progress bar ── */
.slideshow-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  background: transparent;
}

.slideshow-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  will-change: width;
}

.slideshow-progress-bar.running {
  opacity: 1;
  width: 100%;
  animation: progress-fill linear forwards;
}

@keyframes progress-fill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Slideshow controls ── */
.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.slideshow-delay {
  width: 48px;
  padding: 0.3rem 0.35rem;
  font-family: var(--font);
  font-size: 0.82rem;
  text-align: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--t-fast);
}

.slideshow-delay:focus {
  border-color: var(--color-accent);
}

.slideshow-delay-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.btn-slideshow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  line-height: 1;
  padding: 0;
  font-family: var(--font);
}

.btn-slideshow:hover {
  background: var(--color-tag-bg);
  border-color: var(--color-text-light);
}

.btn-slideshow.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn-slideshow.active:hover {
  background: var(--color-accent-hover);
}
