/* ========== РЕКОМЕНДАЦИИ ========== */

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

/* Рекомендации без рамки */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.recommendation-item {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.recommendation-item:hover {
    background: var(--hover-bg);
}

.recommendation-thumbnail {
    position: relative;
    width: 168px;  /* Стандартный размер как на главной */
    height: 94px;   /* 16:9 пропорция */
    border-radius: 8px;
    overflow: hidden;
    background: var(--wood);
    flex-shrink: 0;
}

.recommendation-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--wood);
    color: var(--text-secondary);
}

.recommendation-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.recommendation-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.recommendation-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel {
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.views {
    font-size: 0.75rem;
    white-space: nowrap;
}

.duration-badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .recommendation-thumbnail {
        width: 150px;
        height: 84px;
    }
}

@media (max-width: 768px) {
    .recommendation-thumbnail {
        width: 120px;
        height: 68px;
    }
}