/* CB SlidePlayer styles */
#cb-player, .cb-player {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overflow: hidden;
}

.cbp-stage {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 0;
  /* 横方向のジェスチャーは自前で処理するのでブラウザに渡さない。
     pan-y は残すので、ページの縦スクロールは従来どおり効く。
     これが無いと横ドラッグをブラウザ側に取られてスワイプが効かない。 */
  touch-action: pan-y;
  cursor: grab;
}

.cbp-stage:active {
  cursor: grabbing;
}

.cbp-canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* 右クリック→画像を保存 を無効化（Canvasなので効かないが念のため） */
  pointer-events: auto;
}

.cbp-dots {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 20px;
  background: #000;
}

.cbp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.15s;
}

.cbp-dot-on {
  background: rgba(255, 255, 255, 0.9);
}

.cbp-hint {
  position: absolute;
  bottom: 60px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  pointer-events: none;
  animation: cbp-hint-pulse 1.5s ease-in-out infinite;
}

@keyframes cbp-hint-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1;   }
}

.cbp-error {
  color: #fff;
  padding: 40px;
  text-align: center;
}
