/* Container inside the popover */
.popover-container {
  position: relative;
  display: block;
}

.popover-container img, .popover-container video {
  border-radius: 8px;
}

/* Thumbnail image */
.video-thumbnail {
  display: block;
  width: 400px;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
}

/* Video player */
.video-player {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* Close button */
.popover-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: white;
  color: black;
  padding: 2px 6px 5px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 5px;
  line-height: 1rem;
  font-weight: bold;
}

/* Bootstrap popover custom styles */
.fire-video-popover {
  max-width: 420px !important;
  border: 3px solid white !important;
  border-radius: 12px !important;
  background: black !important;
  z-index: 10
}

.fire-video-popover .popover-body {
  padding: 0 !important;
  width: 400px;
}

/* Responsive changes */
@media (max-width: 768px) {
  .video-thumbnail {
    width: 200px;
    height: 200px;
  }

  .video-player {
    width: 200px;
    height: 200px;
  }

  .fire-details.card {
    font-size: 10px !important;
    padding: 5px !important;
  }

  .fire-video-popover .popover-body {
    padding: 0 !important;
    width: 200px;
  }
}

.fire-details.card {
  width: 100%;
  box-sizing: border-box;
  border-top: 2px solid #fff;
  border-radius: 0 0 8px 8px;
  background: #555454 !important;
  color: #eee !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 10px 12px 8px 12px;
  font-size: 13px;
  z-index: 99999  !important;
}

.fire-details .row {
  margin-left: 0;
  margin-right: 0;
}

.fire-details .fw-bold {
  color: #ffc107;
}

.fire-details .bi-fire {
  vertical-align: middle;
}

  
  .video-action-btn .btn-text {
    display: inline;
  }
  
  .video-action-btn i {
    font-size: 1rem;
  }

  @media (max-width: 768px) {
    .video-action-btn {
      font-size: 0.65rem;
      padding: 0.15rem 0.35rem;
      min-width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .video-action-btn .btn-text {
      display: none;
    }
    
    .video-action-btn i {
      font-size: 1rem;
      margin: 0 !important;
    }
    
    .admin-only-buttons {
      gap: 0.5rem !important;
      margin-top: 0.5rem !important;
      margin-bottom: 0.5rem !important;
    }
  }
  
  @media (max-width: 480px) {
    .video-action-btn {
      padding: 0.1rem 0.25rem;
      min-width: 28px;
      height: 28px;
    }
    
    .video-action-btn i {
      font-size: 0.9rem;
    }
  }

.mobile-tooltip {
  z-index: 99999 !important;
}
