/* ============================================
   11-MYDROPS-VIEWER.CSS
   Viewer "Minhas publicações" + cards de publicação do grid
============================================ */

/* ============================================
   VIEWER (TELA CHEIA)
============================================ */

.mydrops-publication-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  background: #050b18;
  box-sizing: border-box;
}

.mydrops-publication-viewer .nearby-drop-bg {
  position: absolute;
  inset: 0;
  background: #050b18;
  z-index: 0;
}

.mydrops-publication-viewer .nearby-drop-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ============================================
   TOPBAR DO VIEWER
============================================ */

.mydrops-publication-viewer .nearby-drop-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(5,11,24,.96) 0%,
    rgba(5,11,24,.76) 60%,
    rgba(5,11,24,0) 100%
  );
  min-height: 66px;
}

.mydrops-publication-viewer .nearby-drop-top-left {
  min-width: 0;
  flex: 1;
}

.mydrops-publication-viewer .nearby-drop-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mydrops-publication-viewer .nearby-drop-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #1f2937;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.mydrops-publication-viewer .nearby-drop-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mydrops-publication-viewer .nearby-drop-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}

.mydrops-publication-viewer .nearby-drop-user-meta strong {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.mydrops-publication-viewer .nearby-drop-user-meta small {
  font-size: 13px;
  line-height: 1.1;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.mydrops-publication-viewer .nearby-drop-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mydrops-publication-viewer .nearby-drop-close {
  min-width: 70px;
  height: 36px;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f80ff;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.mydrops-publication-viewer .nearby-drop-counter {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  min-width: 36px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* ============================================
   MÍDIA DO VIEWER
============================================ */

.mydrops-publication-viewer .nearby-drop-media-wrap {
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  bottom: 130px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.mydrops-publication-viewer .nearby-drop-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050b18;
}

.mydrops-publication-viewer .nearby-drop-media img,
.mydrops-publication-viewer .nearby-drop-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto;
}

/* ============================================
   SETAS DE NAVEGAÇÃO NO VIEWER
============================================ */

.mydrops-publication-viewer .nearby-drop-arrow {
  position: absolute;
  top: auto;
  bottom: 64px;
  transform: none;
  z-index: 70;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.mydrops-publication-viewer .nearby-drop-arrow-left {
  left: 8px;
}

.mydrops-publication-viewer .nearby-drop-arrow-right {
  right: 8px;
}

.mydrops-publication-viewer .nearby-drop-arrow:disabled {
  opacity: .35;
  cursor: default;
}

/* ============================================
   RODAPÉ DO VIEWER
============================================ */

.mydrops-publication-footer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.mydrops-publication-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mydrops-publication-nav-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  pointer-events: auto;
  position: relative;
  z-index: 61;
  flex-shrink: 0;
}

.mydrops-publication-nav-btn:disabled {
  opacity: .35;
  cursor: default;
}

.mydrops-publication-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.mydrops-publication-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mydrops-publication-stat-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mydrops-publication-stat-btn span {
  font-weight: 900;
}

.mydrops-publication-trash-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  pointer-events: auto;
  position: relative;
  z-index: 61;
}
/* ============================================
   LEGENDA NO VISUALIZADOR
============================================ */

.mydrops-viewer-legenda {
  position: absolute;
  left: 68px;
  right: 68px;
  bottom: 64px;
  z-index: 100;
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-height: 250px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
  pointer-events: auto;
  transition: max-height 0.3s ease, min-height 0.3s ease;
}

.mydrops-viewer-legenda-texto {
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
  width: 100%;
}

.mydrops-viewer-legenda-vazio {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  display: block;
  line-height: 1;
  width: 100%;
}

.mydrops-viewer-ver-mais {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  align-self: flex-start;
  pointer-events: auto;
  position: relative;
  z-index: 101;
}

.mydrops-viewer-ver-mais:hover {
  color: #ff4444;
}

/* ============================================
   CARDS DE PUBLICAÇÃO (GRID)
============================================ */

.mydrops-publication-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.mydrops-publication-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mydrops-publication-media img,
.mydrops-publication-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   OVERLAY (METADADOS) NO CARD
============================================ */

.mydrops-publication-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.58));
  color: #fff;
}

.mydrops-publication-top,
.mydrops-publication-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mydrops-publication-origem,
.mydrops-publication-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mydrops-publication-badge.loop {
  background: rgba(47,140,255,.88);
}

.mydrops-publication-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  -webkit-text-stroke: 0.4px #000;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  opacity: 1;
}

/* ============================================
   LEGENDA NO CARD (SEM "VER MAIS")
============================================ */

.mydrops-publication-legenda-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.mydrops-publication-legenda {
  padding: 12px 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8) 45%, rgba(0,0,0,.9) 100%);
  min-height: 40px;
  pointer-events: auto;
}

.mydrops-publication-legenda-texto {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  display: block;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin: 0;
  padding: 0;
  word-break: break-word;
  white-space: pre-wrap;
}

.mydrops-publication-legenda-vazio {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ============================================
   LEGENDA ANTIGA (só no card, para compatibilidade)
============================================ */

.mydrops-publication-legenda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 40%);
  pointer-events: none;
}

.mydrops-publication-legenda-texto {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin: 0;
}

/* ============================================
   RESPONSIVO
============================================ */

@media (max-width: 480px) {
  .mydrops-publication-card {
    aspect-ratio: 0.62 / 1;
  }
}

/* ============================================
   FORÇAR CONTROLES DE VÍDEO
============================================ */

.mydrops-publication-viewer video {
  pointer-events: auto !important;
  z-index: 100 !important;
}

.mydrops-publication-viewer video::-webkit-media-controls {
  pointer-events: auto !important;
  z-index: 101 !important;
}

.mydrops-publication-viewer video::-webkit-media-controls-panel {
  pointer-events: auto !important;
  display: flex !important;
  opacity: 1 !important;
}

.mydrops-publication-viewer video::-webkit-media-controls-play-button {
  pointer-events: auto !important;
}

.mydrops-publication-viewer video::-webkit-media-controls-timeline {
  pointer-events: auto !important;
}

/* ============================================
   VIEWER DE PUBLICAÇÕES — LAYOUT NOVO
   Palco + papel + topbar (4 linhas) + rodapé
============================================ */

.mydrops-publication-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  background: #050b18;
  box-sizing: border-box;
}

.mydrops-pub-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(143, 208, 255, 0.14), transparent 42%),
    radial-gradient(circle at bottom, rgba(45, 140, 255, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.86), rgba(5, 11, 24, 0.96));
  pointer-events: none;
  z-index: 0;
}

.mydrops-pub-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  box-sizing: border-box;
}

/* ============================================
   TOPBAR (3 LINHAS FINAS)
============================================ */

.mydrops-pub-topbar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 2px 4px;
}

.mydrops-pub-topbar-linha1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

/* Grupo Voltar + Contador (à direita) */
.mydrops-pub-voltar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Contador */
.mydrops-pub-contador {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

/* Botão Voltar — pequeno */
.mydrops-pub-voltar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(47, 140, 255, 0.85);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  line-height: 1;
  box-shadow:
    0 4px 12px rgba(47, 140, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mydrops-pub-voltar:active {
  transform: scale(0.92);
  filter: brightness(1.08);
}

/* Título */
.mydrops-pub-titulo {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Data + hora */
.mydrops-pub-data {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

/* Selos — 1 linha só */
.mydrops-pub-selos {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mydrops-pub-selos .selos-origem {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 4px 8px !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

/* ============================================
   PALCO + PAPEL (mídia em cover retangular)
============================================ */

.mydrops-pub-palco {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mydrops-pub-papel {
  position: relative;
  aspect-ratio: 3 / 4;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mydrops-pub-papel img,
.mydrops-pub-papel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.mydrops-pub-papel video {
  z-index: 2;
}

/* ============================================
   RODAPÉ — SETAS + CÁPSULA + STATS + LIXEIRA
============================================ */

.mydrops-pub-rodape {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
}

/* Setas redondas */
.mydrops-pub-seta {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(47, 140, 255, 0.85);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  line-height: 1;
  box-shadow:
    0 6px 16px rgba(47, 140, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.mydrops-pub-seta:active {
  transform: scale(0.92);
  filter: brightness(1.08);
}

.mydrops-pub-seta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Espaçador quando não tem cápsula */
.mydrops-pub-rodape-vazio {
  flex: 1;
  min-width: 0;
}

/* ============================================
   CÁPSULA DE LEGENDA (4 linhas + Ver mais)
============================================ */

.mydrops-pub-capsula {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  max-height: 34vh;
  overflow: hidden;
}

.mydrops-pub-capsula-texto {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.mydrops-pub-capsula-texto.expandido {
  display: block;
  -webkit-line-clamp: unset;
  overflow-y: auto;
  max-height: 30vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.mydrops-pub-capsula-texto.expandido::-webkit-scrollbar {
  width: 3px;
}

.mydrops-pub-capsula-texto.expandido::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.mydrops-pub-capsula-ver-mais {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 2px;
  -webkit-tap-highlight-color: transparent;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mydrops-pub-capsula-ver-mais.visivel {
  display: inline-block;
}

.mydrops-pub-capsula-ver-mais:active {
  opacity: 0.7;
}

/* ============================================
   STATS + LIXEIRA
============================================ */

.mydrops-pub-stats-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 0;
}

.mydrops-pub-stats-lista {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mydrops-pub-stat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mydrops-pub-stat-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.2);
}

.mydrops-pub-stat-btn span {
  font-weight: 900;
}

/* Lixeira */
.mydrops-pub-trash-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0;
}

.mydrops-pub-trash-btn:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.35);
}
