/* ------------------------------------------------ */
/* Custom CSS - estilos customizados do projeto      */
/* Carregado depois do style.min.css para sobrescrever */
/* ------------------------------------------------ */

/* Cabeçalho dos posts estilo Facebook */
.post-header {
  padding: 12px 16px 0;
  margin-bottom: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.post-avatar {
  padding-right: 8px;
}

.post-avatar-picture {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding-top: 0;
  border-radius: 50%;
}

.post-avatar .online-dot {
  top: 28px;
  right: 0;
}

.post-author {
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  color: #050505;
}

body.night-mode .post-author {
  color: var(--body-color-dark);
}

.post-time {
  font-size: 13px;
  line-height: 16px;
  color: #65676b;
}

.post-time a {
  color: #65676b;
}

/* Vídeo do post sempre com 100% da largura (vertical, tipo TikTok, ou horizontal) */
.post .plyr.fluid-video.non-fullscreen .plyr__video-wrapper {
  width: 100%;
  max-width: 100%;
  max-height: none;
}

.post .plyr.fluid-video.non-fullscreen .plyr__video-wrapper video {
  width: 100%;
  max-height: none;
  object-fit: contain;
}

/* Preenche a largura toda com fundo preto quando o vídeo é mais estreito */
.post .plyr {
  position: relative;
  width: 100%;
  background: #000;
  /* botão de som do post: ajuste aqui a posição e o tamanho */
  --post-sound-right: 12px;
  --post-sound-bottom: 12px;
  --post-sound-size: 36px;
}

/* Vídeo do post: sem controles, só o botão de som; antes de tocar mostra a thumbnail (sem ícone de play) */
.post .plyr__control--overlaid {
  display: none !important;
}

/* a barra do Plyr não é usada nos posts: o botão de som é o próprio post-sound-toggle */
.post .plyr__controls {
  display: none !important;
}

/* botão flutuante no canto inferior direito do vídeo (regras com !important para não herdar estilos globais de button) */
.post .plyr .post-sound-toggle {
  position: absolute !important;
  top: auto !important;
  left: auto !important;
  right: var(--post-sound-right) !important;
  bottom: var(--post-sound-bottom) !important;
  z-index: 10 !important;
  width: var(--post-sound-size) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: var(--post-sound-size) !important;
  min-height: 0 !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  color: #fff !important;
  cursor: pointer;
}

.post .plyr .post-sound-toggle i {
  margin: 0 !important;
  font-size: 16px;
  line-height: 1;
}
