/* ============================================================
   TellEm Vidéos — Mini-lecteur flottant (persistant multi-pages)
   ============================================================ */
.mini-player {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #15110C;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-family: "Inter", system-ui, sans-serif;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform .28s cubic-bezier(.2,.8,.25,1);
}
.mini-player.mini-enter { transform: translateY(18px) scale(.96); }
.mini-player.dragging { transition: none; user-select: none; }

.mini-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.mini-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* grab handle hint on top edge */
.mini-grab {
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
  cursor: grab;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), transparent);
  opacity: 0; transition: opacity .2s;
}
.mini-player:hover .mini-grab { opacity: 1; }
.mini-grab:active { cursor: grabbing; }

/* center play/pause overlay */
.mini-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.mini-stage:hover .mini-overlay { opacity: 1; }
.mini-player.paused .mini-overlay { opacity: 1; }
.mini-overlay .ico {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(10, 8, 7, 0.62);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
}
.mini-overlay .ico svg { width: 24px; height: 24px; color: #fff; }

/* top-right quick controls (expand / close) */
.mini-top {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px;
  opacity: 0; transition: opacity .2s;
}
.mini-player:hover .mini-top { opacity: 1; }
.mini-top button {
  width: 30px; height: 30px; border: none; border-radius: 8px;
  background: rgba(10, 8, 7, 0.7);
  backdrop-filter: blur(4px);
  color: #F5EDD0; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.mini-top button:hover { background: #C9A84C; color: #0A0807; }
.mini-top button svg { width: 16px; height: 16px; }

/* progress bar */
.mini-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(255,255,255,0.18);
}
.mini-progress i { display: block; height: 100%; width: 0; background: #C9A84C; }

/* info / control bar */
.mini-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
}
.mini-bar .mp-play {
  width: 32px; height: 32px; flex: none; border: none; border-radius: 8px;
  background: transparent; color: #F5EDD0; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.mini-bar .mp-play:hover { background: rgba(201,168,76,0.14); }
.mini-bar .mp-play svg { width: 18px; height: 18px; }
.mini-meta { flex: 1; min-width: 0; cursor: pointer; }
.mini-meta .t {
  font-size: 12.5px; font-weight: 600; color: #F5EDD0;
  line-height: 1.25; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.mini-meta .c { font-size: 11px; color: #A08840; margin-top: 2px; }

@media (max-width: 520px) {
  .mini-player { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .mini-player { transition: none; }
  .mini-player.mini-enter { transform: none; }
}
