.rc-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  isolation: isolate;

  touch-action: none;
  width: 100%;
  height: 100%;
}

.rc-phone-frame {
  position: relative;
  z-index: 30;
  display: block;
  pointer-events: none;
  user-select: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.rc-phone-frame-ios {
  z-index: 10;
}

.rc-video {
  position: absolute;
  z-index: 20;
  outline: none;
  pointer-events: none;
  cursor: none;
  background-color: black;
  object-fit: contain;
  object-position: center center;
  inset: 0;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  bottom: auto;
}

.rc-video-frameless {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  max-width: 100%;
  max-height: 100%;
}

.rc-video-loading {
  aspect-ratio: 9 / 19.5;
}

.rc-touch-indicator {
  position: absolute;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  will-change: transform, left, top;
}

.rc-retry-button {
  position: absolute;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 9999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rc-retry-button:hover {
  background: #ffffff;
}

.rc-retry-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
