/* iShorts WP — front.css v2.0 */

:root { --ish-bubble-sz: 64px; --ish-z: 99999; }

/* ═══════ BUBBLE ═══════ */
.ish-bubble {
  position: fixed;
  z-index: var(--ish-z);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  /* sem touch-action para não bloquear eventos de toque */
}
.ish-bubble.ish-dragging { cursor: grabbing; }
.ish-bubble.ish-pos-bottom-left   { bottom: 24px; left: 24px; }
.ish-bubble.ish-pos-bottom-right  { bottom: 24px; right: 24px; }
.ish-bubble.ish-pos-bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); }

.ish-bubble-ring {
  width: var(--ish-bubble-sz); height: var(--ish-bubble-sz);
  border-radius: 50%; padding: 3px; flex-shrink: 0;
  background: conic-gradient(var(--ish-color, #FF3B6B) 0%, #ff9a3c 40%, #ff3b6b 100%);
  /* sem animation — anel estático */
}
.ish-bubble-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #111;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.ish-bubble-inner::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.2) 0%, transparent 65%);
  pointer-events: none; z-index: 2;
}
.ish-bubble-pulse {
  position: absolute;
  width: var(--ish-bubble-sz); height: var(--ish-bubble-sz);
  border-radius: 50%;
  background: var(--ish-color, #FF3B6B);
  opacity: 0; pointer-events: none;
  animation: ish-pulse 2.5s ease-out infinite;
}
.ish-bubble-label {
  font: 700 11px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .04em; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  white-space: nowrap; pointer-events: none;
}

@keyframes ish-spin  { to { transform: rotate(360deg); } }
@keyframes ish-pulse { 0% { transform: scale(.85); opacity: .5; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }

/* ═══════ OVERLAY ═══════ */
.ish-overlay {
  position: fixed; inset: 0;
  z-index: calc(var(--ish-z) + 1);
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.ish-overlay.ish-open { opacity: 1; pointer-events: all; }

/* ═══════ PLAYER ═══════ */
.ish-player {
  position: relative;
  width: min(380px, 92vw); height: min(680px, 90vh);
  background: #111; border-radius: 22px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
}

/* ── Vídeo — camada base ── */
.ish-video-area {
  position: absolute; inset: 0;
  background: #000;
  z-index: 1;
}
.ish-video-area video,
.ish-video-area iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border: none;
}
.ish-video-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #0d0d0d; z-index: 2;
}
.ish-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #fff; border-radius: 50%;
  animation: ish-spin .8s linear infinite;
}

/* ── Top bar — acima do vídeo ── */
.ish-top-bar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 14px 14px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 100%);
  display: flex; flex-direction: column; gap: 10px;
}
.ish-prog-track { display: flex; gap: 4px; }
.ish-progress-seg {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.3); overflow: hidden;
}
.ish-progress-fill { height: 100%; background: #fff; width: 0%; }
.ish-progress-seg.ish-done .ish-progress-fill { width: 100%; }

.ish-top-controls { display: flex; align-items: center; justify-content: space-between; }
.ish-logo-badge {
  font: 800 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff; letter-spacing: -.02em;
}
.ish-top-btns { display: flex; gap: 8px; align-items: center; margin-left: auto; }

.ish-icon-btn, .ish-close-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s; padding: 0; line-height: 1;
}
.ish-icon-btn { font-size: 17px; }
.ish-close-btn { font-size: 19px; }
.ish-icon-btn:hover, .ish-close-btn:hover { background: rgba(0,0,0,.75); }

/* ── Setas ── */
.ish-nav-prev, .ish-nav-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 40px; height: 40px;
  background: rgba(0,0,0,.4); border: none; border-radius: 50%;
  color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.ish-player:hover .ish-nav-prev,
.ish-player:hover .ish-nav-next { opacity: 1; }
.ish-nav-prev { left: 10px; }
.ish-nav-next { right: 10px; }
.ish-nav-prev:disabled, .ish-nav-next:disabled { opacity: .15 !important; cursor: default; }

/* ── Info inferior — acima do vídeo ── */
.ish-bottom-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 60px 18px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, transparent 100%);
}
.ish-video-title {
  font: 700 15px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff; margin: 0 0 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.ish-cta-btn {
  display: inline-block; padding: 11px 22px; border-radius: 50px;
  background: var(--ish-color, #FF3B6B); color: #fff;
  font: 700 14px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,.35);
  transition: filter .2s, transform .15s;
}
.ish-cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; text-decoration: none; }

.ish-dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.ish-dot  { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s, transform .2s; }
.ish-dot.ish-dot-active { background: #fff; transform: scale(1.4); }

@media (max-width: 480px) {
  .ish-bubble.ish-pos-bottom-left  { bottom: 16px; left: 16px; }
  .ish-bubble.ish-pos-bottom-right { bottom: 16px; right: 16px; }
}
