/* EP26 Bibi Infinite Carousel Loop Styles */
.ep26-loop-wrap {
  position: absolute; right: 20px; bottom: 20px; z-index: 100;
  display: flex; flex-direction: column; max-width: 440px; width: calc(100% - 40px);
  pointer-events: auto; animation: ep26FadeIn 0.3s ease;
}
@keyframes ep26FadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ep26-panel {
  background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.4); border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}
.ep26-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ep26-badge { background: linear-gradient(135deg, #a855f7, #7c3aed); color: white; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.ep26-hint { font-size: 12px; color: #e9d5ff; font-weight: 600; }
.ep26-motion-box {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: rgba(30, 41, 59, 0.8); border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px; padding: 14px;
}
.ep26-spin-icon {
  font-size: 40px; display: inline-block;
  animation: ep26Spin 2s linear infinite;
}
.ep26-spin-icon.stopped {
  animation-play-state: paused; filter: grayscale(0.5);
}
@keyframes ep26Spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ep26-motion-info { display: flex; flex-direction: column; font-size: 13px; color: #f8fafc; }
.ep26-motion-info b { color: #c084fc; font-size: 15px; }
.ep26-motion-info small { color: #94a3b8; font-size: 11px; margin-top: 2px; }
.ep26-btn-stop {
  width: 100%; padding: 12px; font-size: 14px; font-weight: 800; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: white; cursor: pointer; min-height: 48px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4); transition: all 0.2s ease;
}
.ep26-btn-stop:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.ep26-btn-stop:disabled { opacity: 0.6; cursor: not-allowed; }
.ep26-status-msg { font-size: 12px; font-weight: 700; color: #e9d5ff; text-align: center; min-height: 18px; }

.ep26-complete-wrap { width: 100%; max-width: 900px; margin: 14px auto 0; animation: ep26FadeIn 0.4s ease; }
.ep26-complete-card {
  background: rgba(15, 23, 42, 0.92); border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px; padding: 20px 24px; text-align: center;
}
.ep26-complete-icon { display: inline-block; background: rgba(168, 85, 247, 0.2); color: #c084fc; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.ep26-comp-btn.primary { background: linear-gradient(135deg, #a855f7, #7c3aed); color: white; border: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; margin-top: 10px; }

@media (min-width: 769px) {
  .screen-container.ep26-split-screen .cinema-cut,
  .screen-container.ep26-result-screen .cinema-cut { width: calc(100% - 270px); }
  .screen-container.ep26-split-screen .cinema-cut.active,
  .screen-container.ep26-result-screen .cinema-cut.active { animation: none; transform: none; }
  .screen-container.ep26-split-screen .ep26-loop-wrap {
    right: 10px; bottom: 20px; width: 250px; max-width: 250px;
  }
  .screen-container.ep26-split-screen .ep26-panel { padding: 12px; gap: 8px; }
  .screen-container.ep26-split-screen .ep26-title-row { justify-content: center; text-align: center; }
  .screen-container.ep26-split-screen .ep26-motion-box { padding: 10px; }
  .screen-container.ep26-result-screen .ep26-complete-wrap {
    position: absolute; z-index: 100; right: 10px; bottom: 20px;
    width: 250px; max-width: 250px; margin: 0;
  }
  .screen-container.ep26-result-screen .ep26-complete-card { padding: 14px 12px; }
  .screen-container.ep26-result-screen .ep26-complete-card h3 { font-size: 16px; margin: 6px 0; }
  .screen-container.ep26-result-screen .ep26-complete-card p { font-size: 12px; line-height: 1.5; margin: 6px 0; }
}

.ep26-silent-next-wrap {
  width: 100%; max-width: 900px; margin: 12px auto 0; text-align: center;
}
.ep26-silent-next-btn {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white; border: none; padding: 12px 24px; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

@media (max-width: 768px) {
  .ep26-loop-wrap { position: relative; right: auto; bottom: auto; width: 100%; max-width: 100%; margin: 12px auto 0; }
}
