.film-player {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  border-radius: clamp(10px, 1.1vw, 18px);
  background: #111;
  color: white;
  font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.film-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.film-player [hidden] { display: none !important; }
.film-glass {
  color: white;
  background: rgba(35, 35, 38, .78);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .13);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
.film-player button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  color: white;
  touch-action: manipulation;
}
.film-player button:focus-visible, .film-player input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.film-player .film-start {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 1.8vw, 22px);
  transform: translateX(-50%);
  white-space: nowrap;
  min-height: 44px;
  padding: 0 17px;
  gap: 9px;
  border-radius: 99px;
  font-weight: 600;
}
.film-length, .film-clock {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #eee;
}
.film-dock {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 1.8vw, 22px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  width: min(396px, calc(100% - 20px));
  padding: 2px 6px;
  border-radius: 32px;
  transition: opacity .2s ease;
}
.film-player.is-quiet .film-dock:not(:has(:focus-visible)) { opacity: 0; pointer-events: none; }
.film-dock button {
  width: 42px;
  height: 40px;
  flex: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  padding: 0;
}
@media (hover: hover) {
  .film-dock button:hover { background: rgba(255, 255, 255, .14); }
  .film-player .film-start:hover { background: rgba(24, 24, 28, .91); }
}
.film-player button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.film-start svg { transform: scale(.9); }
.film-seek {
  --progress: 0%;
  flex: 1;
  min-width: 30px;
  height: 32px;
  margin: 0 4px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.film-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 9px;
  background: linear-gradient(to right, white var(--progress), #969698 var(--progress));
}
.film-seek::-moz-range-track { height: 3px; background: #969698; }
.film-seek::-moz-range-progress { height: 3px; background: #fff; }
.film-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: white;
}
.film-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; background: white; }
.film-player:fullscreen { display: grid; align-items: center; height: 100%; border-radius: 0; background: black; }
.film-player:fullscreen video { height: 100%; }
@media (prefers-reduced-motion: reduce) { .film-dock { transition: none; } }
