.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
}

.placeholder-image i {
    font-size: 2rem;
}

.category-tag {
    margin: var(--spacing-sm) 0 0 0;
    padding: 0 var(--spacing-md);
}

.category-link {
    color: var(--kinopoisk-orange);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.main-container ol.list-numbered > li:before {
    color: var(--text-secondary);
}

/* Loader styles */
.loading {
  min-height: 200px;
  position: relative;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-secondary);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Lazy loading images */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[data-src].loaded {
  opacity: 1;
}

/* Text utilities */
.text-truncate-multiline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
}

.text-truncate-2 {
  -webkit-line-clamp: 2;
}

.text-truncate-3 {
  -webkit-line-clamp: 3;
}

.text-truncate-4 {
  -webkit-line-clamp: 4;
}

.text-truncate-5 {
  -webkit-line-clamp: 5;
}

/* Ensure text doesn't get cut off */
.text-safe {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
} 