/* FilmeHDon - corectie Premiere recomandate */
.fhd-premieres-scroll {
  position: relative;
  width: 100%;
  padding: 10px 22px 22px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fhd-premieres-scroll::-webkit-scrollbar {
  display: none;
}

.fhd-premieres-content {
  display: flex !important;
  align-items: stretch;
  gap: 15px;
  width: max-content !important;
  min-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.fhd-premieres-content > table,
.fhd-premieres-content > tbody,
.fhd-premieres-content > tr {
  display: none !important;
}

.fhd-premiere-card {
  position: relative;
  display: block;
  flex: 0 0 var(--fhd-premiere-width, 120px);
  width: var(--fhd-premiere-width, 120px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
  background: #080906;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fhd-premiere-card:hover {
  border-color: rgba(255, 190, 69, 0.72);
  transform: translateY(-4px);
}

.fhd-premiere-poster {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.25s ease;
}

.fhd-premiere-card:hover .fhd-premiere-poster {
  transform: scale(1.035);
}

/* Panglica apartine cardului si se deplaseaza impreuna cu posterul */
.fhd-premiere-ribbon {
  position: absolute;
  z-index: 5;
  top: 11px;
  left: -34px;
  width: 126px;
  padding: 6px 0;
  color: #17160f;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.65px;
  text-align: center;
  background: linear-gradient(135deg, #ffe888, #ffc246 52%, #f29b2e);
  border-top: 1px solid rgba(255, 255, 255, 0.46);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.34);
  transform: rotate(-45deg);
  pointer-events: none;
}

.fhd-premiere-title {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 34px 8px 8px;
  overflow: hidden;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.94));
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}

@media (max-width: 760px) {
  .fhd-premieres-scroll {
    padding: 9px 14px 17px;
  }

  .fhd-premieres-content {
    gap: 11px;
  }
}

@media (max-width: 520px) {
  .fhd-premieres-scroll {
    padding: 8px 10px 15px;
  }

  .fhd-premieres-content {
    gap: 9px;
  }

  .fhd-premiere-card {
    border-radius: 8px;
  }

  .fhd-premiere-title {
    padding: 27px 6px 6px;
    font-size: 8px;
  }

  .fhd-premiere-ribbon {
    top: 9px;
    left: -37px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fhd-premieres-scroll { scroll-behavior: auto; }
  .fhd-premiere-card,
  .fhd-premiere-poster { transition: none; }
}
