/* Prevent scroll-bounce on iOS */
html, body { overscroll-behavior: none; touch-action: manipulation; }

/* Card layout */
.card {
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid #262626;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y; /* allow vertical scroll, we handle horizontal */
  will-change: transform, opacity;
  transition: transform 250ms cubic-bezier(.22,.61,.36,1), opacity 200ms linear;
}
.card.dragging { transition: none; }

.card img, .card video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none; /* let pointer events hit card */
}
.card video { pointer-events: auto; } /* allow video controls */

.card .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  font-size: 12px;
  color: #e5e5e5;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Buttons */
.btn-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  transition: transform 80ms ease-out;
}
.btn-action:active { transform: scale(0.96); }

/* Swipe hint badges */
.hint {
  position: absolute;
  padding: 6px 10px;
  border: 2px solid;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 13px;
  opacity: 0;
  transform: rotate(-8deg);
  transition: opacity 120ms linear;
  pointer-events: none;
  z-index: 20;
}
#hintKeep { transform: rotate(8deg); }

/* Large-video prompt overlay */
.card .large-warn {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
