/* =============================================
   ZERO GRAU FILMES — cinema.css
   cinema.html: Awards, laurels, festival badges
   ============================================= */

/* ---- Laurel awards ---- */
.laurel-award {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.45s var(--bez) 0.15s,
    transform 0.45s var(--bez) 0.15s;
}

.film-cell:hover .laurel-award {
  opacity: 0.82;
  transform: translateY(0);
}

/* Delay extra para segundo laurel */
.film-cell:hover .laurel-award:nth-child(3) {
  transition-delay: 0.24s;
}

.laurel-branch {
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}

.laurel-branch-right { transform: scaleX(-1); }

.award-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* =============================================
   AWARDS — Festival badge style
   ============================================= */
.festival-badges {
  /* Anchored ABOVE the title via flex order — title/genre always stay bottom-left */
  order: -1;
  margin: 0 0 18px 0;
  display: flex;
  gap: 14px 18px;
  /* wrap-reverse → fills from BOTTOM row up; leftover items end up on the top row */
  flex-wrap: wrap-reverse;
  justify-content: flex-start;
  align-items: flex-end;
  align-self: stretch;
  max-width: 100%;
}

.festival-badge {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.45s var(--bez),
    transform 0.45s var(--bez);
  position: relative;
}

.film-cell:hover .festival-badge              { opacity: 0.92; transform: translateY(0); }
.film-cell:hover .festival-badge:nth-child(2) { transition-delay: 0.08s; }
.film-cell:hover .festival-badge:nth-child(3) { transition-delay: 0.16s; }

.louros-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.louro {
  width: 28px;
  height: auto;
  overflow: visible;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  flex-shrink: 0;
}

.film-production-info {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-top: auto;
}

.festival-text {
  /* width fixo (não max-width) — padroniza largura de TODOS os badges */
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  padding: 0 4px;
  min-height: 38px;
}

.festival-label {
  font-size: 0.42rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
  text-align: center;
}

.festival-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

.festival-year {
  font-size: 0.42rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  text-align: center;
}

/* =============================================
   MOBILE — laurels & badges shrink to fit
   ============================================= */
@media (max-width: 768px) {
  .festival-badges {
    margin-bottom: 10px;
    gap: 8px 8px;
    /* Centraliza horizontalmente as linhas de louros no mobile */
    justify-content: center;
    align-items: stretch;
  }
  .louro { width: 16px; opacity: 0.78; flex-shrink: 0; }
  .louros-container { gap: 3px; align-items: center; }
  .festival-text {
    width: 78px;
    padding: 0 2px;
    /* min-height fixo padroniza TODOS os louros à mesma altura,
       mesmo quando uns têm label+ano e outros não */
    min-height: 44px;
    justify-content: center;
  }
  .festival-label { font-size: 0.36rem; letter-spacing: 0.06em; line-height: 1.15; }
  .festival-name  { font-size: 0.52rem; line-height: 1.15; }
  .festival-year  { font-size: 0.36rem; line-height: 1.3; }
}

@media (max-width: 460px) {
  .festival-badges { gap: 6px 5px; }
  .louro { width: 13px; }
  .festival-text { width: 64px; min-height: 38px; }
  .festival-label { font-size: 0.32rem; }
  .festival-name  { font-size: 0.46rem; }
  .festival-year  { font-size: 0.32rem; }
}

/* Compatibility: hide old award system */
.awards-list,
.award-item,
.laurel-award { display: none !important; }

/* =============================================
   PDF MODAL — modo documento
   ============================================= */
.video-modal.pdf-mode .video-modal-inner {
  aspect-ratio: unset;
  height: 88vh;
  max-height: 780px;
}

.video-modal.pdf-mode .video-modal-frame {
  height: calc(100% - 36px);
}

.modal-pdf-link {
  display: none;
  text-align: right;
  margin-top: 10px;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
  padding-right: 2px;
}

.video-modal.pdf-mode .modal-pdf-link { display: block; }

.modal-pdf-link:hover { color: rgba(255, 255, 255, 0.75); }

/* PDF badge */
.film-cell[data-type="pdf"] .film-overlay::after {
  content: 'PDF';
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  background: var(--zg-pink-ghost);
  border: 1px solid rgba(232, 69, 122, 0.35);
  border-radius: 100px;
  color: var(--zg-pink-lt);
  z-index: 3;
}
