/* VersaPlay v3.8.0 — botão Limpar cache sempre visível */

#vp-clear-app-cache-v380.vp-cache-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 30 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(99,230,161,.38);
  border-radius: 10px;
  background: rgba(8,43,44,.94);
  color: #dbfff0;
  box-shadow: 0 5px 16px rgba(0,0,0,.23);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#vp-clear-app-cache-v380.vp-cache-button:hover {
  border-color: rgba(99,230,161,.68);
  background: rgba(12,65,61,.98);
}

#vp-clear-app-cache-v380.vp-cache-button:active {
  transform: scale(.97);
}

#vp-clear-app-cache-v380.vp-cache-button:focus-visible {
  outline: 2px solid #63e6a1;
  outline-offset: 2px;
}

#vp-clear-app-cache-v380.vp-cache-button:disabled {
  cursor: wait;
  opacity: .72 !important;
}

#vp-clear-app-cache-v380 .vp-cache-icon {
  display: inline-block;
  font-size: 1.12rem;
}

#vp-clear-app-cache-v380.is-working .vp-cache-icon {
  animation: vp-cache-v380-spin .8s linear infinite;
}

.vp-cache-toast {
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translate(-50%,18px);
  max-width: min(92vw,620px);
  padding: 11px 14px;
  border: 1px solid rgba(99,230,161,.30);
  border-radius: 12px;
  background: rgba(5,24,38,.98);
  color: #effff5;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease,transform .18s ease;
  font-size: .78rem;
  text-align: center;
}

.vp-cache-toast.is-error {
  border-color: rgba(255,126,150,.34);
  color: #ffe4e9;
}

.vp-cache-toast.is-visible {
  opacity: 1;
  transform: translate(-50%,0);
}

/* Garante que a barra de ações possa acomodar o novo botão. */
.vp-item-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  overflow: visible !important;
}

@keyframes vp-cache-v380-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  #vp-clear-app-cache-v380.vp-cache-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 10px;
  }

  #vp-clear-app-cache-v380 .vp-cache-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  #vp-clear-app-cache-v380 .vp-cache-icon {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #vp-clear-app-cache-v380.is-working .vp-cache-icon {
    animation: none;
  }
}
