/* Poster type vs quality badges — no overlap */
.poster__img {
  position: relative;
}
/* Category: Фильм / Сериал / ... — top LEFT */
.poster__label,
.poster__label--type {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  z-index: 4 !important;
  max-width: calc(100% - 72px);
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 0 0 6px 0 !important;
}
.poster__label span {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Quality: TS / HDTV / WEBRip — top RIGHT */
.poster__quality {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center;
  max-width: 46%;
  padding: 5px 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 0 0 0 6px !important;
  background: linear-gradient(135deg, #e8a54b, #ff6b3d) !important;
  color: #1a1206 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.poster__quality span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* keep type visible on hover (quality can fade with labels or stay) */
.poster:hover .poster__quality {
  opacity: 0.92;
}
@media (max-width: 480px) {
  .poster__label { font-size: 11px; padding: 5px 8px; gap: 4px; }
  .poster__label .fal { display: none; } /* more room for text */
  .poster__quality { font-size: 10px; padding: 4px 6px !important; max-width: 42%; }
}
