/* Stories 24h — perfil da acompanhante */

body.bc-story-viewer-open {
  overflow: hidden;
}

body.bc-story-viewer-open .bc-acompanhantes-topbar {
  visibility: hidden;
  pointer-events: none;
}

.bc-hero-avatar--has-story .bc-hero-avatar__media {
  padding: 3px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 50%;
}

.bc-hero-avatar--has-story .bc-avatar-image {
  border: 2px solid #fff;
  box-sizing: border-box;
}

.bc-hero-avatar-status {
  display: none;
}

.bc-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: #000;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bc-story-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bc-story-viewer__shell {
  width: 100%;
  height: 100%;
  position: relative;
}

.bc-story-viewer__layout {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-story-viewer__close-float {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 20;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.bc-story-viewer__close-float:hover {
  opacity: 0.75;
}

.bc-story-viewer__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.bc-story-viewer__progress {
  display: flex;
  gap: 4px;
  padding: 10px 12px 6px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
}

.bc-story-viewer__progress-item {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.bc-story-viewer__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: inherit;
  transition: width 0.05s linear;
}

.bc-story-viewer__header {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top, 0px) + 12px));
  left: 0;
  right: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
}

.bc-story-viewer__author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bc-story-viewer__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.bc-story-viewer__author-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-story-viewer__time {
  font-size: 0.75rem;
  opacity: 0.85;
}

.bc-story-viewer__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bc-story-viewer__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.bc-story-viewer__btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.bc-story-viewer__btn[hidden],
.bc-story-viewer__btn.is-hidden {
  display: none !important;
}

.bc-story-viewer__media-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: #000;
}

.bc-story-viewer__media-wrap img,
.bc-story-viewer__media-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.bc-story-viewer__caption {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  z-index: 5;
  pointer-events: none;
}

.bc-story-viewer__tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  z-index: 4;
  cursor: pointer;
  background: transparent;
  border: none;
}

.bc-story-viewer__tap--prev {
  left: 0;
}

.bc-story-viewer__tap--next {
  right: 0;
}

.bc-story-viewer__nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.bc-story-viewer__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.bc-story-viewer__nav:disabled,
.bc-story-viewer__nav.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.bc-story-viewer__nav--external {
  display: none;
}

/* Desktop — card central grande + setas laterais */
@media (min-width: 769px) {
  .bc-story-viewer {
    background: rgba(26, 26, 26, 0.98);
  }

  .bc-story-viewer__shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    box-sizing: border-box;
  }

  .bc-story-viewer__close-float {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .bc-story-viewer__layout {
    width: auto;
    height: auto;
    max-width: calc(100vw - 64px);
    gap: 32px;
    align-items: center;
    justify-content: center;
  }

  .bc-story-viewer__stage {
    flex: 0 0 auto;
    height: min(94vh, 960px);
    width: min(560px, calc(min(94vh, 960px) * 9 / 16));
    max-height: 94vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
  }

  .bc-story-viewer__media-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .bc-story-viewer__progress {
    padding-top: 10px;
  }

  .bc-story-viewer__header {
    top: 24px;
    padding: 6px 10px;
  }

  .bc-story-viewer__tap {
    display: block;
    top: 56px;
  }

  .bc-story-viewer__nav--external {
    display: inline-flex;
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.1);
  }

  .bc-story-viewer__nav--external:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 768px) {
  .bc-story-viewer__nav--external {
    display: none !important;
  }

  .bc-story-viewer__tap {
    display: none !important;
  }

  #bc-story-pause-btn {
    display: none !important;
  }

  .bc-story-viewer__stage {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .bc-story-viewer__media-wrap {
    -webkit-tap-highlight-color: transparent;
  }
}

.bc-story-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 200001;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bc-story-upload-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bc-story-upload-panel {
  background: #fff;
  color: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.bc-story-upload-panel__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: #e91e63;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: bc-story-spin 0.8s linear infinite;
}

@keyframes bc-story-spin {
  to {
    transform: rotate(360deg);
  }
}

.bc-avatar-action-menu__item--story-add {
  color: #c2185b;
  font-weight: 600;
}
