/* Photo Slideshow — tool-specific styles (loaded after /assets/base.css) */
.pss-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pss-row { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; }
.pss-row.dragging { opacity: .55; border-color: var(--accent); }
.pss-grip { color: var(--muted-2); flex-shrink: 0; width: 18px; height: 18px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.pss-grip svg { width: 18px; height: 18px; display: block; }
.pss-row.dragging .pss-grip { cursor: grabbing; }
.pss-thumb { width: 50px; height: 50px; border-radius: 9px; object-fit: cover; flex-shrink: 0;
  background: #000; border: 1px solid var(--line); }
.pss-meta { flex: 1; min-width: 0; }
.pss-name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pss-sub { font-size: .82rem; color: var(--muted-2); margin-top: 2px; }
.icon-btn { background: var(--card-2); border: 1px solid var(--line); color: var(--muted); width: 34px; height: 34px;
  border-radius: 9px; cursor: pointer; display: grid; place-items: center; transition: color .15s, border-color .15s; font-size: 1rem; flex-shrink: 0; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

.pss-options { display: grid; grid-template-columns: minmax(0, 240px); gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pss-opt { display: flex; flex-direction: column; gap: 7px; }
.pss-opt label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.pss-opt select { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 10px 11px; border-radius: var(--radius-sm); font-size: .92rem; font-family: inherit; }
.pss-opt select:focus { outline: none; border-color: var(--accent); }
.pss-go { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }

/* ---- Fullscreen presenter ---- */
.pss-player { position: fixed; inset: 0; z-index: 500; background: #000; display: flex; align-items: center; justify-content: center; }
.pss-player[hidden] { display: none; }
.pss-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pss-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pss-player-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 1.1rem;
  cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.pss-player-close:hover { background: rgba(255,255,255,.18); }
.pss-player-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background .15s, opacity .15s; }
.pss-player-nav:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.pss-player-nav:disabled { opacity: .25; cursor: default; }
.pss-player-prev { left: 18px; }
.pss-player-next { right: 18px; }
.pss-player-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px; }

/* Controls auto-hide (video-player pattern) — this presenter is a custom position:fixed
   overlay rather than the native Fullscreen API, so it can't use base.css's :fullscreen
   rule; app.js toggles .fs-idle on .pss-player itself after a couple of seconds of no
   mouse/touch/keyboard activity, using the same fs-controls marker class for consistency. */
.pss-player .fs-controls { transition: opacity .35s ease; opacity: 1; }
.pss-player.fs-idle .fs-controls { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pss-player .fs-controls { transition: none; } }

@media (max-width: 680px) {
  .pss-player-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .pss-player-prev { left: 8px; }
  .pss-player-next { right: 8px; }
}
