/* ═══════════════════════════════════════════════════════
   GALERIA — public page
   ═══════════════════════════════════════════════════════ */
.gal-page {
  min-height: 100vh;
}

/* Live status pill (igual ao eventos) */
.status-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(13, 20, 23, 0.7);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; color: #fff;
  text-transform: uppercase;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: gal-pulse 1.4s infinite;
}
@keyframes gal-pulse { 50% { opacity: 0.3; } }
.status-txt { color: #2ecc71; }
.status-txt #galLiveTxt { color: #f1c40f; }

.gal-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.gal-intro {
  text-align: center;
  margin-bottom: 40px;
}
.gal-kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.4em; font-weight: 800;
  color: #fd1227;
  background: rgba(253, 18, 39, 0.08);
  border: 1px solid rgba(253, 18, 39, 0.3);
  padding: 5px 10px;
  margin-bottom: 16px;
}
.gal-title {
  font-size: 48px; font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.gal-title em {
  font-style: normal;
  background: linear-gradient(180deg, #ff5e5e 0%, #fd1227 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gal-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px; line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.gal-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px; letter-spacing: 0.3em; font-weight: 700;
}

.gal-tile {
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.gal-tile:hover {
  border-color: #fd1227;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 18, 39, 0.2);
}
.gal-tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0e0e14;
  overflow: hidden;
}
.gal-tile-media img,
.gal-tile-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gal-tile-kind {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.gal-tile-kind.video { color: #fd1227; }
.gal-tile-kind.video::before {
  content: '▶';
  font-size: 8px;
}
.gal-tile-author {
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.gal-tile-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  object-fit: cover;
}
.gal-tile-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.gal-loadmore[hidden] { display: none !important; }
.gal-loadmore {
  display: block;
  margin: 32px auto 0;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gal-loadmore:hover {
  border-color: #fd1227;
  background: rgba(253, 18, 39, 0.08);
}

/* ─── Lightbox ─── */
.gal-lightbox[hidden] { display: none !important; }
.gal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  backdrop-filter: blur(8px);
}
.gal-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  overflow: hidden;
}
.gal-lb-stage img,
.gal-lb-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.gal-lb-meta {
  padding: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}
.gal-lb-meta b { color: #fff; }
.gal-lb-close,
.gal-lb-prev,
.gal-lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.gal-lb-close:hover,
.gal-lb-prev:hover,
.gal-lb-next:hover {
  background: #fd1227;
  border-color: #fd1227;
}
.gal-lb-close { top: 16px; right: 16px; }
.gal-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.gal-lb-next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 32px; }

@media (max-width: 720px) {
  .gal-title { font-size: 32px; }
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
  .gal-lb-prev, .gal-lb-next { width: 36px; height: 36px; }
}

/* ─── Homepage preview section ─── */
.gallery-preview {
  padding: 40px 24px 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.gallery-preview .gp-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.gp-kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.4em; font-weight: 800;
  color: #fd1227;
  background: rgba(253, 18, 39, 0.08);
  border: 1px solid rgba(253, 18, 39, 0.3);
  padding: 5px 10px;
  border-radius: 1px;
}
.gp-title {
  font-size: 28px; font-weight: 900; letter-spacing: 0.02em;
  margin: 12px 0 0;
}
.gp-title em {
  font-style: normal;
  background: linear-gradient(180deg, #ff5e5e 0%, #fd1227 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gp-link {
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  color: #fd1227;
  text-decoration: none;
  align-self: flex-end;
}
.gp-link:hover { text-decoration: underline; }
.gp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.gp-grid .gal-tile { aspect-ratio: 1 / 1; }
@media (max-width: 720px) {
  .gp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── REACTIONS ─── */
.gal-tile-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 10px 10px;
  margin-top: -4px;
}
.gal-rx-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px 8px 3px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #d8dde2;
  transition: background 0.15s, transform 0.15s;
}
.gal-rx-chip:hover {
  background: rgba(253,18,39,0.12);
  border-color: rgba(253,18,39,0.35);
  transform: translateY(-1px);
}
.gal-rx-emoji {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
img.gal-rx-emoji { object-fit: contain; }
.gal-rx-count {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11.5px;
  color: #fff;
  letter-spacing: 0.02em;
}

/* lightbox reactions inline below meta text */
.gal-lb-meta .gal-tile-reactions {
  padding: 6px 0 0;
  margin-top: 8px;
}

/* ─── PREVIEW (home) reaction badge — top-right corner overlay ─── */
.gp-grid .gal-tile { position: relative; }
.gp-rx-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 6px;
  background: rgba(6,7,10,0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 2;
}
.gp-rx-emoji {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
img.gp-rx-emoji { object-fit: contain; }
.gp-rx-count {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ─── EMBED TILES (videos externos: YouTube/Medal/Streamable/Twitch) ─── */
.gal-tile-media { position: relative; }
.gal-tile-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.gal-tile:hover .gal-tile-play {
  background: rgba(253, 18, 39, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}
.gal-tile-embed-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a3140 0%, #14181f 100%);
  color: #FFC93C;
  font-weight: 800;
  font-size: 48px;
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: 0.1em;
}

.gal-tile-kind.embed {
  background: rgba(0, 0, 0, 0.78);
  color: #FFC93C;
}
.gal-tile-kind.src-youtube      { background: #cc0000; color: #fff; }
.gal-tile-kind.src-medal        { background: #1eb872; color: #fff; }
.gal-tile-kind.src-streamable   { background: #0f6bff; color: #fff; }
.gal-tile-kind.src-twitch-clip  { background: #9146ff; color: #fff; }

/* Lightbox: iframe wrapper (16:9) */
.gal-lb-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.gal-lb-embed-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: 6px;
}
