/* Floating YouTube Widget (miniatura + redirect) */
#yt-widget-container{ position: relative; }

#yt-fab-wrap{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483646 !important;
  width: 48px;
  height: 48px;
}

#yt-fab{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 2147483646 !important;
}

#yt-fab svg{ display:block; }

#yt-fab-hide{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: rgba(0,0,0,.75);
  color: #fff;
  z-index: 2147483646 !important;
}

#yt-popup{
  position: fixed;
  left: 16px;
  bottom: 72px;
  width: min(380px, calc(100vw - 32px));
  border-radius: 14px;
  overflow: hidden;
  display: none;
  z-index: 2147483647 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  background: rgba(15,15,15,.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}

#yt-popup.open{ display:block; }

.yt-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(15,15,15,.96);
}

#yt-close{
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  color: #fff;
}

.yt-body{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Miniatura clicável */
.yt-thumb-btn{
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: block;
}

.yt-thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-play-badge{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: #fff;
  background: rgba(0,0,0,.25);
  transition: background .15s ease, transform .15s ease;
}

.yt-thumb-btn:hover .yt-play-badge{
  background: rgba(0,0,0,.35);
  transform: scale(1.02);
}

.yt-actions{
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(15,15,15,.96);
}

.yt-link{
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.yt-link:hover{ background: rgba(255,255,255,.12); }

/* Mobile: um pouco menor */
@media (max-width: 420px){
  #yt-fab-wrap{ width: 44px; height: 44px; }
  #yt-fab{ width: 44px; height: 44px; }
  #yt-popup{ bottom: 68px; }
}
