/* Compact smoked-glass filmstrip dock, consistent in either site theme. */
.film-player {
  --played: 0%;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(580px, 100%);
  min-width: 0;
  flex: none;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ffffff24;
  background: rgb(26 26 28 / .76);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  color: #fff;
  box-shadow: 0 8px 32px #0003, inset 0 1px 0 #ffffff08;
  isolation: isolate;
}
.film-player[hidden] { display: none; }
.film-player > button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 13px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #ffffff09;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.film-player svg { width: 18px; height: 18px; }
.film-player > button:active { transform: scale(.94); }
.film-player :focus-visible { outline: 2px solid #ff5100; outline-offset: 3px; }
.film-track { position: relative; flex: 1; min-width: 0; height: 44px; margin-left: 6px; border-radius: 11px; background: #343434; }
.film-thumbnails { position: absolute; inset: 0; display: flex; border-radius: inherit; overflow: hidden; }
.film-thumbnails > * { display: block; width: calc(100% / 6); height: 100%; min-width: 0; object-fit: cover; flex: 1; background: linear-gradient(135deg,#343434,#666); }
.film-unplayed { position: absolute; inset: 0; background: #0006; clip-path: inset(0 0 0 var(--played)); border-radius: inherit; pointer-events: none; }
.film-playhead { position: absolute; top: 0; bottom: 0; left: clamp(3px, var(--played), calc(100% - 3px)); width: 2px; transform: translateX(-50%); background: white; pointer-events: none; box-shadow: 0 0 5px #0004; }
.film-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.film-track:has(:focus-visible) { outline: 2px solid #ff5100; outline-offset: 4px; }
.film-time { position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translateX(-50%); padding: 5px 9px; background: #090909d9; color: white; border-radius: 6px; font: 12px/1.3 Arial,sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.film-track:focus-within .film-time { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .film-player > button:hover { background: #ffffff18; } .film-track:hover .film-time { opacity: 1; } }
.media-lightbox .film-player { justify-self: center; }
.media-lightbox.media-transitioning .film-player { opacity: 0; }
#reel-dialog .film-player { position: absolute; z-index: 4; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(580px, calc(100% - 48px)); }
#reel-dialog > video { height: calc(100% - 112px); margin-top: 12px; }
#reel-dialog .reel-exit { inset: max(16px, env(safe-area-inset-top)) 20px auto auto; width: 44px; height: 44px; z-index: 5; display: grid; place-items: center; border: 1px solid #fff6; border-radius: 50%; background: #2229; color: white; font: 30px/1 Arial,sans-serif; }
@media (max-width:600px), (max-height:500px) {
  .film-player { gap: 4px; padding: 6px; border-radius: 18px; }
  .film-player > button { flex-basis: 44px; width: 44px; height: 44px; padding: 12px; }
  .film-player svg { width: 17px; height: 17px; }
  .film-track { height: 44px; margin-left: 4px; border-radius: 12px; }
  #reel-dialog .film-player { bottom: max(12px, env(safe-area-inset-bottom)); width: min(580px, calc(100% - 32px)); }
  #reel-dialog > video { height: calc(100% - 100px); }
}
@media (prefers-reduced-motion:reduce) { .film-player *, .film-player *::before { transition: none; } }
