/* =====================================================================
   video-optimize.css — companion to video-optimize.js
   Styles the poster/play-button overlay and the buffering/poor-connection
   status line. Scoped under .wg-player so it can't leak into any other
   component.
   ===================================================================== */

.wg-player {
  position: relative;
  width: 100%;
  max-height: 480px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.wg-player__video {
  display: block;
  width: 100%;
  max-height: 480px;
  background: #000;
}

.wg-player__playbtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wg-player__playbtn:hover {
  background: var(--wg-brand, #b5179e);
  transform: translate(-50%, -50%) scale(1.06);
}

.wg-player__playicon {
  font-size: 26px;
  margin-left: 4px; /* optically center the triangle */
}

.wg-player__status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.wg-player__status[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .wg-player__playbtn { width: 56px; height: 56px; }
  .wg-player__playicon { font-size: 20px; }
}
